| The Gaudi Framework v29r0 (ff2e7097)

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

- File List
- File Members

HistogramUtility.h
Go to the documentation of this file.
1 #ifndef GAUDICOMMONSVC_HISTOGRAMUTILITY_H
2 #define GAUDICOMMONSVC_HISTOGRAMUTILITY_H 1
3
4 #include "GaudiKernel/HistogramBase.h"
5
6 namespace Gaudi
7 {
8 template <class Q, class T>
9 T* getRepresentation( const Q& hist )
10 {
11 auto p = dynamic_cast<const HistogramBase*>( &hist );
12 return p ? dynamic_cast<T*>( p->representation() ) : nullptr;
13 }
14 }
15
16 #endif
Gaudi::getRepresentation
T * getRepresentation(const Q &hist)
Definition: HistogramUtility.h:9
HistogramBase.h
Gaudi::HistogramBase
Common base class for all histograms Use is solely functional to minimize dynamic_casts inside Histog...
Definition: HistogramBase.h:23
Gaudi
Helper functions to set/get the application return code.
Definition: __init__.py:1