| # Gaudi Framework, version v22r2 |

Home |  | Generated: Tue May 10 2011

Public Member Functions | Static Public Member Functions | Public Attributes

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

    : 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 99 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 109 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 A2 , class A3 >

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

Definition at line 92 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::find | ( | A1 | a1,
|  | A3 *& | a3
| ) |  | `[inline]`

Definition at line 86 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 A3 >

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

Definition at line 74 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 80 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 72 of file HistogramSvc.h.

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines