The Gaudi Framework  v29r0 (ff2e7097)
HistogramUtility.h
Go to the documentation of this file.
1 #ifndef GAUDICOMMONSVC_HISTOGRAMUTILITY_H
2 #define GAUDICOMMONSVC_HISTOGRAMUTILITY_H 1
3 
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
T * getRepresentation(const Q &hist)
Common base class for all histograms Use is solely functional to minimize dynamic_casts inside Histog...
Definition: HistogramBase.h:23
Helper functions to set/get the application return code.
Definition: __init__.py:1