Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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  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
T * getRepresentation(const Q &hist)
Common base class for all histograms Use is solely functional to minimize dynamic_casts inside Histog...
Definition: HistogramBase.h:22
Helper functions to set/get the application return code.
Definition: __init__.py:1