| # Gaudi Framework, version v21r11 |

Home |  | Generated: 30 Sep 2010

# HistogramSvc::Helper Struct Reference

`#include <HistogramSvc.h>`

Collaboration diagram for HistogramSvc::Helper:
[legend]

List of all members.

## 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, void(T1::*pmf)(const T2 *))
## Public Attributes
HistogramSvc * | m_svc

## Detailed Description

Definition at line 71 of file HistogramSvc.h.

## Constructor & Destructor Documentation

HistogramSvc::Helper::Helper | ( | HistogramSvc * | p | ) | `[inline]`

Definition at line 73 of file HistogramSvc.h.

    00073 : m_svc(p) {}

## Member Function Documentation

template<class A1, class A3>

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

Definition at line 74 of file HistogramSvc.h.

    00074                                                                        {
    00075       DataObject* pObject  = 0;
    00076       StatusCode sc = m_svc->DataSvc::retrieveObject(a1,pObject);
    00077       a3 = dynamic_cast<A3*>(pObject);
    00078       return sc;
    00079     }

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.

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

template<class A1, class A3>

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

Definition at line 86 of file HistogramSvc.h.

    00086                                                                    {
    00087       DataObject* pObject  = 0;
    00088       StatusCode sc = m_svc->DataSvc::findObject(a1,pObject);
    00089       a3 = dynamic_cast<A3*>(pObject);
    00090       return sc;
    00091     }

template<class A1, class A2, class A3>

StatusCode HistogramSvc::Helper::find | ( | A1 | a1,
|  | A2 | a2,
|  | A3 *& | a3 |
| ) |  |  | `[inline]`

Definition at line 92 of file HistogramSvc.h.

    00092                                                                                     {
    00093       DataObject* pObject  = 0;
    00094       StatusCode sc = m_svc->DataSvc::findObject(a1,a2,pObject);
    00095       a3 = dynamic_cast<A3*>(pObject);
    00096       return sc;
    00097     }

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 99 of file HistogramSvc.h.

    00099                                                                                          {
    00100       T1 *h1 = Gaudi::getRepresentation<R,T1>(*res);
    00101       T1 *h2 = Gaudi::getRepresentation<R,T1>(b);
    00102       if ( h1 && h2 )  {
    00103         (h1->*pmf)(h2,scale);
    00104         return res;
    00105       }
    00106       return 0;
    00107     }

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 109 of file HistogramSvc.h.

    00109                                                                 {
    00110       T1 *h1 = Gaudi::getRepresentation<R,T1>(*res);
    00111       T1 *h2 = Gaudi::getRepresentation<R,T1>(b);
    00112       if ( h1 && h2 )  {
    00113         (h1->*pmf)(h2);
    00114         return res;
    00115       }
    00116       return 0;
    00117     }

## Member Data Documentation

HistogramSvc* HistogramSvc::Helper::m_svc

Definition at line 72 of file HistogramSvc.h.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r11/GaudiSvc/src/HistogramSvc/HistogramSvc.h