HistogramSvc::Helper Struct Reference

#include <src/HistogramSvc/HistogramSvc.h>

Collaboration diagram for HistogramSvc::Helper:

Public Member Functions

 Helper (HistogramSvc *p)
 
template<class A1 , class A3 >
StatusCode retrieve (A1 a1, A3 *&a3)
 
template<class A1 , class A2 , class A3 >
StatusCode retrieve (A1 a1, A2 a2, A3 *&a3)
 
template<class A1 , class A3 >
StatusCode find (A1 a1, A3 *&a3)
 
template<class A1 , class A2 , class A3 >
StatusCode find (A1 a1, A2 a2, A3 *&a3)
 

Static Public Member Functions

template<class R , class S , class T1 , class T2 >
static R * act (R *res, const S &b, void(T1::*pmf)(const T2 *, Double_t), Double_t scale)
 
template<class R , class S , class T1 , class T2 >
static R * act (R *res, const S &b, Bool_t(T1::*pmf)(const T2 *, Double_t), Double_t scale)
 
template<class R , class S , class T1 , class T2 >
static R * act (R *res, const S &b, void(T1::*pmf)(const T2 *))
 
template<class R , class S , class T1 , class T2 >
static R * act (R *res, const S &b, Bool_t(T1::*pmf)(const T2 *))
 

Public Attributes

HistogramSvcm_svc
 

Detailed Description

Definition at line 68 of file HistogramSvc.h.

Constructor & Destructor Documentation

HistogramSvc::Helper::Helper ( HistogramSvc p)
inline

Definition at line 70 of file HistogramSvc.h.

70 : m_svc( p ) {}
HistogramSvc * m_svc
Definition: HistogramSvc.h:69

Member Function Documentation

template<class R , class S , class T1 , class T2 >
static R* HistogramSvc::Helper::act ( R *  res,
const S &  b,
void(T1::*)(const T2 *, Double_t)  pmf,
Double_t  scale 
)
inlinestatic

Definition at line 104 of file HistogramSvc.h.

105  {
106  T1* h1 = Gaudi::getRepresentation<R, T1>( *res );
107  T1* h2 = Gaudi::getRepresentation<R, T1>( b );
108  if ( h1 && h2 ) {
109  ( h1->*pmf )( h2, scale );
110  return res;
111  }
112  return nullptr;
113  }
template<class R , class S , class T1 , class T2 >
static R* HistogramSvc::Helper::act ( R *  res,
const S &  b,
Bool_t(T1::*)(const T2 *, Double_t)  pmf,
Double_t  scale 
)
inlinestatic

Definition at line 115 of file HistogramSvc.h.

116  {
117  T1* h1 = Gaudi::getRepresentation<R, T1>( *res );
118  T1* h2 = Gaudi::getRepresentation<R, T1>( b );
119  if ( h1 && h2 ) {
120  ( h1->*pmf )( h2, scale );
121  return res;
122  }
123  return nullptr;
124  }
template<class R , class S , class T1 , class T2 >
static R* HistogramSvc::Helper::act ( R *  res,
const S &  b,
void(T1::*)(const T2 *)  pmf 
)
inlinestatic

Definition at line 126 of file HistogramSvc.h.

127  {
128  T1* h1 = Gaudi::getRepresentation<R, T1>( *res );
129  T1* h2 = Gaudi::getRepresentation<R, T1>( b );
130  if ( h1 && h2 ) {
131  ( h1->*pmf )( h2 );
132  return res;
133  }
134  return nullptr;
135  }
template<class R , class S , class T1 , class T2 >
static R* HistogramSvc::Helper::act ( R *  res,
const S &  b,
Bool_t(T1::*)(const T2 *)  pmf 
)
inlinestatic

Definition at line 137 of file HistogramSvc.h.

138  {
139  T1* h1 = Gaudi::getRepresentation<R, T1>( *res );
140  T1* h2 = Gaudi::getRepresentation<R, T1>( b );
141  if ( h1 && h2 ) {
142  ( h1->*pmf )( h2 );
143  return res;
144  }
145  return nullptr;
146  }
template<class A1 , class A3 >
StatusCode HistogramSvc::Helper::find ( A1  a1,
A3 *&  a3 
)
inline

Definition at line 88 of file HistogramSvc.h.

89  {
90  DataObject* pObject = nullptr;
91  StatusCode sc = m_svc->DataSvc::findObject( a1, pObject );
92  a3 = dynamic_cast<A3*>( pObject );
93  return sc;
94  }
HistogramSvc * m_svc
Definition: HistogramSvc.h:69
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30
template<class A1 , class A2 , class A3 >
StatusCode HistogramSvc::Helper::find ( A1  a1,
A2  a2,
A3 *&  a3 
)
inline

Definition at line 96 of file HistogramSvc.h.

97  {
98  DataObject* pObject = nullptr;
99  StatusCode sc = m_svc->DataSvc::findObject( a1, a2, pObject );
100  a3 = dynamic_cast<A3*>( pObject );
101  return sc;
102  }
HistogramSvc * m_svc
Definition: HistogramSvc.h:69
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30
template<class A1 , class A3 >
StatusCode HistogramSvc::Helper::retrieve ( A1  a1,
A3 *&  a3 
)
inline

Definition at line 72 of file HistogramSvc.h.

73  {
74  DataObject* pObject = nullptr;
75  StatusCode sc = m_svc->DataSvc::retrieveObject( a1, pObject );
76  a3 = dynamic_cast<A3*>( pObject );
77  return sc;
78  }
HistogramSvc * m_svc
Definition: HistogramSvc.h:69
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30
template<class A1 , class A2 , class A3 >
StatusCode HistogramSvc::Helper::retrieve ( A1  a1,
A2  a2,
A3 *&  a3 
)
inline

Definition at line 80 of file HistogramSvc.h.

81  {
82  DataObject* pObject = nullptr;
83  StatusCode sc = m_svc->DataSvc::retrieveObject( a1, a2, pObject );
84  a3 = dynamic_cast<A3*>( pObject );
85  return sc;
86  }
HistogramSvc * m_svc
Definition: HistogramSvc.h:69
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30

Member Data Documentation

HistogramSvc* HistogramSvc::Helper::m_svc

Definition at line 69 of file HistogramSvc.h.


The documentation for this struct was generated from the following file: