| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
HistogramSvc::Helper Struct Reference

`#include <HistogramSvc.h>`

Collaboration diagram for HistogramSvc::Helper:
[legend]

## 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
HistogramSvc * | m_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.

: m_svc(p) {}

## 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
| ) |  |
| inline static

Definition at line 96 of file HistogramSvc.h.

{
T1 *h1 = Gaudi::getRepresentation<R,T1>(*res);
T1 *h2 = Gaudi::getRepresentation<R,T1>(b);
if ( h1 && h2 ) {
(h1->*pmf)(h2,scale);
return res;
}
return 0;
}
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
| ) |  |
| inline static

Definition at line 106 of file HistogramSvc.h.

{
T1 *h1 = Gaudi::getRepresentation<R,T1>(*res);
T1 *h2 = Gaudi::getRepresentation<R,T1>(b);
if ( h1 && h2 ) {
(h1->*pmf)(h2,scale);
return res;
}
return 0;
}
template<class R , class S , class T1 , class T2 >

static R* HistogramSvc::Helper::act | ( | R * | res,
|  | const S & | b,
|  | void(T1::*)(const T2 *) | pmf
| ) |  |
| inline static

Definition at line 116 of file HistogramSvc.h.

{
T1 *h1 = Gaudi::getRepresentation<R,T1>(*res);
T1 *h2 = Gaudi::getRepresentation<R,T1>(b);
if ( h1 && h2 ) {
(h1->*pmf)(h2);
return res;
}
return 0;
}
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
| ) |  |
| inline static

Definition at line 126 of file HistogramSvc.h.

{
T1 *h1 = Gaudi::getRepresentation<R,T1>(*res);
T1 *h2 = Gaudi::getRepresentation<R,T1>(b);
if ( h1 && h2 ) {
(h1->*pmf)(h2);
return res;
}
return 0;
}
template<class A1 , class A3 >

StatusCode HistogramSvc::Helper::find | ( | A1 | a1,
|  | A3 *& | a3
| ) |  |
| inline

Definition at line 83 of file HistogramSvc.h.

{
DataObject* pObject = 0;
StatusCode sc = m_svc->DataSvc::findObject(a1,pObject);
a3 = dynamic_cast<A3*>(pObject);
return sc;
}
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.

{
DataObject* pObject = 0;
StatusCode sc = m_svc->DataSvc::findObject(a1,a2,pObject);
a3 = dynamic_cast<A3*>(pObject);
return sc;
}
template<class A1 , class A3 >

StatusCode HistogramSvc::Helper::retrieve | ( | A1 | a1,
|  | A3 *& | a3
| ) |  |
| inline

Definition at line 71 of file HistogramSvc.h.

{
DataObject* pObject = 0;
StatusCode sc = m_svc->DataSvc::retrieveObject(a1,pObject);
a3 = dynamic_cast<A3*>(pObject);
return sc;
}
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.

{
DataObject* pObject = 0;
StatusCode sc = m_svc->DataSvc::retrieveObject(a1,a2,pObject);
a3 = dynamic_cast<A3*>(pObject);
return sc;
}

## 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:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiCommonSvc/src/HistogramSvc/HistogramSvc.h