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> 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
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