| The Gaudi Framework v28r2-patches (bc4ad17a)

- 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 template <class Q, class T> T* getRepresentation(const Q& hist) {
8 auto p = dynamic_cast<const HistogramBase*>(&hist);
9 return p ? dynamic_cast<T*>(p->representation()) : nullptr;
10 }
11 }
12
13 #endif
Gaudi::getRepresentation
T * getRepresentation(const Q &hist)
Definition: HistogramUtility.h:7
HistogramBase.h
Gaudi::HistogramBase
Common base class for all histograms Use is solely functional to minimize dynamic_casts inside Histog...
Definition: HistogramBase.h:22
Gaudi
Helper functions to set/get the application return code.
Definition: __init__.py:1