| The Gaudi Framework v32r1 (f65d50dc)

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>
8 T* getRepresentation( const Q& hist ) {
9 auto p = dynamic_cast<const HistogramBase*>( &hist );
10 return p ? dynamic_cast<T*>( p->representation() ) : nullptr;
11 }
12 } // namespace Gaudi
13
14 #endif
Gaudi::getRepresentation
T * getRepresentation(const Q &hist)
Definition: HistogramUtility.h:8
HistogramBase.h
Gaudi
Header file for std:chrono::duration-based Counters.
Definition: __init__.py:1