![]() |
The Gaudi Framework
master (e68eea06)
|
A counter aiming at computing sum and average. More...
#include </builds/gaudi/Gaudi/GaudiKernel/include/Gaudi/Accumulators.h>


Public Member Functions | |
| template<typename OWNER> | |
| AveragingCounter (OWNER *o, std::string const &name) | |
| template<typename stream> | |
| stream & | printImpl (stream &o, bool tableFormat) const |
| std::ostream & | print (std::ostream &o, bool tableFormat=false) const override |
| prints the counter to a stream | |
| MsgStream & | print (MsgStream &o, bool tableFormat=false) const override |
| bool | toBePrinted () const override |
| hint whether we should print that counter or not. | |
Public Member Functions inherited from Gaudi::Accumulators::BufferableCounter< atomicity::full, AveragingAccumulator, double > | |
| BufferableCounter ()=default | |
| BufferableCounter (OWNER *o, std::string const &name) | |
| BufferableCounter (BufferableCounter const &)=delete | |
| BufferType | buffer () |
| BufferableCounter & | operator= (BufferableCounter const &)=delete |
| ~BufferableCounter () | |
Public Member Functions inherited from Gaudi::Accumulators::PrintableCounter | |
| PrintableCounter ()=default | |
| virtual | ~PrintableCounter ()=default |
| destructor | |
| 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 | |
| virtual MsgStream & | print (MsgStream &o, std::string_view tag) const |
| std::string | toString () const |
| get a string representation | |
Public Member Functions inherited from Gaudi::Accumulators::AveragingAccumulatorBase< Atomicity, Arithmetic, CountAccumulator, SumAccumulator > | |
| auto | mean () const |
| auto | mean () const |
Public Member Functions inherited from Gaudi::Accumulators::AccumulatorSet< Arithmetic, Atomicity, InputTypeT, Bases > | |
| constexpr | AccumulatorSet ()=default |
| template<atomicity ato> | |
| AccumulatorSet (construct_empty_t, const AccumulatorSet< Arithmetic, ato, InputType, Bases... > &) | |
| constructor of an empty AccumulatorSet, copying the (non existent) config from another GenericAccumulator | |
| AccumulatorSet & | operator+= (const InputType by) |
| OutputType | value () const |
| void | reset () |
| template<atomicity Ato> | |
| void | mergeAndReset (AccumulatorSet< Arithmetic, Ato, InputType, Bases... > &other) |
| template<atomicity Ato> | |
| void | operator+ (AccumulatorSet< Arithmetic, Ato, InputType, Bases... > &&other) |
Static Public Member Functions | |
| static AveragingCounter | fromJSON (const nlohmann::json &j) |
Static Public Attributes | |
| static const std::string | typeString |
Static Public Attributes inherited from Gaudi::Accumulators::BufferableCounter< atomicity::full, AveragingAccumulator, double > | |
| static const std::string | typeString |
Friends | |
| void | reset (AveragingCounter &c) |
| void | mergeAndReset (AveragingCounter &c, AveragingCounter &o) |
| void | to_json (nlohmann::json &j, AveragingCounter const &c) |
Additional Inherited Members | |
Public Types inherited from Gaudi::Accumulators::BufferableCounter< atomicity::full, AveragingAccumulator, double > | |
| using | BufferType |
Public Types inherited from Gaudi::Accumulators::AccumulatorSet< Arithmetic, Atomicity, InputTypeT, Bases > | |
| using | InputType = InputTypeT |
| using | OutputType = std::tuple<typename Bases<Atomicity, Arithmetic>::OutputType...> |
| using | InternalType = std::tuple<typename Bases<Atomicity, Arithmetic>::InternalType...> |
| using | JSONStringEntriesType = std::tuple<typename Bases<Atomicity, Arithmetic>::JSONStringEntriesType...> |
Protected Member Functions inherited from Gaudi::Accumulators::BufferableCounter< atomicity::full, AveragingAccumulator, double > | |
| BufferableCounter (OWNER *o, std::string const &name, SELF &self, CARGS... args) | |
Protected Member Functions inherited from Gaudi::Accumulators::AccumulatorSet< Arithmetic, Atomicity, InputTypeT, Bases > | |
| AccumulatorSet (const InternalType &t) | |
| void | reset (const InternalType &t) |
Static Protected Member Functions inherited from Gaudi::Accumulators::AccumulatorSet< Arithmetic, Atomicity, InputTypeT, Bases > | |
| static InternalType | extractJSONData (const nlohmann::json &j, const JSONStringEntriesType &entries) |
A counter aiming at computing sum and average.
Definition at line 970 of file Accumulators.h.
|
inline |
Definition at line 975 of file Accumulators.h.
|
inlinestatic |
Definition at line 1000 of file Accumulators.h.
|
inlineoverridevirtual |
Implements Gaudi::Accumulators::PrintableCounter.
Definition at line 988 of file Accumulators.h.
|
inlineoverridevirtual |
prints the counter to a stream
Implements Gaudi::Accumulators::PrintableCounter.
Definition at line 985 of file Accumulators.h.
|
inline |
Definition at line 980 of file Accumulators.h.
|
inlineoverridevirtual |
hint whether we should print that counter or not.
Typically empty counters may not be printed
Reimplemented from Gaudi::Accumulators::PrintableCounter.
Definition at line 990 of file Accumulators.h.
|
friend |
Definition at line 992 of file Accumulators.h.
|
friend |
Definition at line 991 of file Accumulators.h.
|
friend |
Definition at line 993 of file Accumulators.h.
|
inlinestatic |
Definition at line 971 of file Accumulators.h.