All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 96 of file HistogramSvc.h.

96  {
97  T1 *h1 = Gaudi::getRepresentation<R,T1>(*res);
98  T1 *h2 = Gaudi::getRepresentation<R,T1>(b);
99  if ( h1 && h2 ) {
100  (h1->*pmf)(h2,scale);
101  return res;
102  }
103  return 0;
104  }
tuple h2
Definition: Test.py:42
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 106 of file HistogramSvc.h.

106  {
107  T1 *h1 = Gaudi::getRepresentation<R,T1>(*res);
108  T1 *h2 = Gaudi::getRepresentation<R,T1>(b);
109  if ( h1 && h2 ) {
110  (h1->*pmf)(h2,scale);
111  return res;
112  }
113  return 0;
114  }
tuple h2
Definition: Test.py:42
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 116 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);
121  return res;
122  }
123  return 0;
124  }
tuple h2
Definition: Test.py:42
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 126 of file HistogramSvc.h.

126  {
127  T1 *h1 = Gaudi::getRepresentation<R,T1>(*res);
128  T1 *h2 = Gaudi::getRepresentation<R,T1>(b);
129  if ( h1 && h2 ) {
130  (h1->*pmf)(h2);
131  return res;
132  }
133  return 0;
134  }
tuple h2
Definition: Test.py:42
template<class A1 , class A3 >
StatusCode HistogramSvc::Helper::find ( A1  a1,
A3 *&  a3 
)
inline

Definition at line 83 of file HistogramSvc.h.

83  {
84  DataObject* pObject = 0;
85  StatusCode sc = m_svc->DataSvc::findObject(a1,pObject);
86  a3 = dynamic_cast<A3*>(pObject);
87  return sc;
88  }
HistogramSvc * m_svc
Definition: HistogramSvc.h:69
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:31
template<class A1 , class A2 , class A3 >
StatusCode HistogramSvc::Helper::find ( A1  a1,
A2  a2,
A3 *&  a3 
)
inline

Definition at line 89 of file HistogramSvc.h.

89  {
90  DataObject* pObject = 0;
91  StatusCode sc = m_svc->DataSvc::findObject(a1,a2,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:30
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:31
template<class A1 , class A3 >
StatusCode HistogramSvc::Helper::retrieve ( A1  a1,
A3 *&  a3 
)
inline

Definition at line 71 of file HistogramSvc.h.

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

Definition at line 77 of file HistogramSvc.h.

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

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: