![]() |
The Gaudi Framework
v33r1 (b1225454)
|
Counter class for histogram storage. More...
#include <Gaudi/Accumulators/Histogram.h>


Public Types | |
| using | Adapter = Details::HistogramAdapter< HistogramType > |
Public Member Functions | |
| Histogram (HistogramType h) | |
| template<class OWNER > | |
| Histogram (OWNER *o, const std::string &tag, HistogramType h) | |
| std::ostream & | print (std::ostream &s, bool tableFormat=false) const override |
| prints the counter to a stream More... | |
| MsgStream & | print (MsgStream &s, bool tableFormat=true) const override |
| bool | toBePrinted () const override |
| hint whether we should print that counter or not. More... | |
| template<class... Ts> | |
| Histogram & | operator() (const Ts &... ts) |
| template<typename T = HistogramType, typename INC = typename Details::HistogramAdapter<T>::increment_t> | |
| Histogram & | operator+= (const INC &x) |
| template<class... Ts> | |
| Histogram & | fill (const Ts &... ts) |
| HistogramType & | hist () |
| const HistogramType & | hist () const |
Public Member Functions inherited from Gaudi::Gaudi::Accumulators::PrintableCounter | |
| PrintableCounter ()=default | |
| template<class OWNER > | |
| PrintableCounter (OWNER *o, std::string tag) | |
| virtual | ~PrintableCounter ()=default |
| destructor More... | |
| template<typename stream > | |
| stream & | printImpl (stream &s, std::string_view tag) const |
| virtual std::ostream & | print (std::ostream &o, std::string_view tag) const |
| prints the counter to a stream in table format, with the given tag More... | |
| virtual MsgStream & | print (MsgStream &o, std::string_view tag) const |
| std::string | toString () const |
| get a string representation More... | |
Private Attributes | |
| Adapter | m_hist |
Counter class for histogram storage.
(EXPERIMENTAL)
It is an experimental feature and the interface may change.
This Gaudi::Accumulator class can be used to add histograms as data members of algorithms, similar to the simpler counters.
For example:
Known issues:
Definition at line 132 of file Histogram.h.
| using Gaudi::Accumulators::Histogram< HistogramType >::Adapter = Details::HistogramAdapter<HistogramType> |
Definition at line 133 of file Histogram.h.
|
inline |
Definition at line 135 of file Histogram.h.
|
inline |
Definition at line 138 of file Histogram.h.
|
inline |
Definition at line 155 of file Histogram.h.
|
inline |
|
inline |
Definition at line 164 of file Histogram.h.
|
inline |
Add something to the histogram (see documentation of the histogram implementation).
Definition at line 145 of file Histogram.h.
|
inline |
Definition at line 150 of file Histogram.h.
|
inlineoverridevirtual |
prints the counter to a stream
Implements Gaudi::Gaudi::Accumulators::PrintableCounter.
Definition at line 169 of file Histogram.h.
|
inlineoverridevirtual |
Implements Gaudi::Gaudi::Accumulators::PrintableCounter.
Definition at line 172 of file Histogram.h.
|
inlineoverridevirtual |
hint whether we should print that counter or not.
Typically empty counters may not be printed
Reimplemented from Gaudi::Gaudi::Accumulators::PrintableCounter.
Definition at line 175 of file Histogram.h.
|
private |
Definition at line 178 of file Histogram.h.