The Gaudi Framework
master (37c0b60a)
|
backward compatible StatEntity class. More...
#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/StatEntity.h>
Public Member Functions | |
StatEntity ()=default | |
the constructor with automatic registration in the owner's counter map More... | |
StatEntity (const unsigned long entries, const double flag, const double flag2, const double minFlag, const double maxFlag) | |
void | operator= (double by) |
StatEntity & | operator-= (double by) |
StatEntity & | operator++ () |
StatEntity | operator++ (int) |
StatEntity & | operator-- () |
StatEntity | operator-- (int) |
bool | operator< (const StatEntity &se) const |
StatEntity & | operator+= (double by) |
StatEntity & | operator+= (StatEntity by) |
unsigned long | add (const double v) |
unsigned long | addFlag (const double v) |
double | Sum () const |
double | Mean () const |
double | MeanErr () const |
double | rms () const |
double | Rms () const |
double | RMS () const |
double | Eff () const |
double | Min () const |
double | Max () const |
double | flag () const |
double | flag2 () const |
double | flagMean () const |
double | flagRMS () const |
double | flagMeanErr () const |
double | flagMin () const |
double | flagMax () const |
template<typename stream > | |
stream & | printFormattedImpl (stream &o, const std::string &format) const |
std::ostream & | printFormatted (std::ostream &o, const std::string &format) const |
MsgStream & | printFormatted (MsgStream &o, const std::string &format) const |
template<typename stream > | |
stream & | printImpl (stream &o, bool tableFormat, std::string_view name, bool flag, std::string_view fmtHead) const |
std::ostream & | print (std::ostream &o, bool tableFormat, std::string_view name, bool flag=true, std::string_view fmtHead="%|-48.48s|%|27t|") const |
MsgStream & | print (MsgStream &o, bool tableFormat, std::string_view name, bool flag=true, std::string_view fmtHead="%|-48.48s|%|27t|") const |
virtual std::ostream & | print (std::ostream &o, std::string_view tag) const override |
prints the counter to a stream in table format, with the given tag More... | |
virtual MsgStream & | print (MsgStream &o, std::string_view tag) const override |
std::ostream & | print (std::ostream &o, bool tableFormat=false) const override |
prints the counter to a stream More... | |
MsgStream & | print (MsgStream &o, bool tableFormat=false) const override |
std::string | toString () const |
std::ostream & | fillStream (std::ostream &o) const |
MsgStream & | fillStream (MsgStream &o) const |
Public Member Functions inherited from Gaudi::Accumulators::PrintableCounter | |
PrintableCounter ()=default | |
virtual | ~PrintableCounter ()=default |
destructor More... | |
template<typename stream > | |
stream & | printImpl (stream &s, std::string_view tag) const |
virtual bool | toBePrinted () const |
hint whether we should print that counter or not. More... | |
std::string | toString () const |
get a string representation More... | |
Public Member Functions inherited from Gaudi::Accumulators::AccumulatorSet< double, Gaudi::Accumulators::atomicity::full, double, Gaudi::Accumulators::StatAccumulator, Gaudi::Accumulators::BinomialAccumulator > | |
constexpr | AccumulatorSet ()=default |
AccumulatorSet (construct_empty_t, const AccumulatorSet< double, ato, InputType, Gaudi::Accumulators::StatAccumulator ... > &) | |
constructor of an empty AccumulatorSet, copying the (non existent) config from another GenericAccumulator More... | |
AccumulatorSet & | operator+= (const InputType by) |
OutputType | value () const |
void | reset () |
void | mergeAndReset (AccumulatorSet< double, Ato, InputType, Gaudi::Accumulators::StatAccumulator ... > &other) |
void | operator+ (AccumulatorSet< double, Ato, InputType, Gaudi::Accumulators::StatAccumulator ... > &&other) |
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 More... | |
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 bool | effCounter (std::string_view name) |
static StatEntity | fromJSON (const nlohmann::json &j) |
Static Public Attributes | |
static const std::string | typeString { "statentity" } |
Static Private Member Functions | |
static constexpr bool | essentiallyEqual (double const a, double const b) |
Friends | |
void | reset (StatEntity &s) |
void | to_json (nlohmann::json &j, StatEntity const &s) |
Basic JSON export for Gaudi::Monitoring::Hub support. More... | |
backward compatible StatEntity class.
Should not be used. Only here for backward compatibility
Definition at line 20 of file StatEntity.h.
using StatEntity::AccParent = Gaudi::Accumulators::AccumulatorSet<double, Gaudi::Accumulators::atomicity::full, double, Gaudi::Accumulators::StatAccumulator, Gaudi::Accumulators::BinomialAccumulator> |
Definition at line 26 of file StatEntity.h.
using StatEntity::BinomialAccParent = Gaudi::Accumulators::BinomialAccumulator<Gaudi::Accumulators::atomicity::full, double> |
Definition at line 29 of file StatEntity.h.
|
default |
the constructor with automatic registration in the owner's counter map
|
inline |
Definition at line 34 of file StatEntity.h.
|
inline |
Definition at line 80 of file StatEntity.h.
|
inline |
Definition at line 84 of file StatEntity.h.
|
inline |
Definition at line 92 of file StatEntity.h.
|
inlinestatic |
|
inlinestaticconstexprprivate |
Definition at line 197 of file StatEntity.h.
Definition at line 186 of file StatEntity.h.
|
inline |
Definition at line 185 of file StatEntity.h.
|
inline |
Definition at line 96 of file StatEntity.h.
|
inline |
Definition at line 97 of file StatEntity.h.
|
inline |
Definition at line 102 of file StatEntity.h.
|
inline |
Definition at line 98 of file StatEntity.h.
|
inline |
Definition at line 100 of file StatEntity.h.
|
inline |
Definition at line 101 of file StatEntity.h.
|
inline |
Definition at line 99 of file StatEntity.h.
|
inlinestatic |
Definition at line 189 of file StatEntity.h.
|
inline |
Definition at line 94 of file StatEntity.h.
|
inline |
Definition at line 87 of file StatEntity.h.
|
inline |
Definition at line 88 of file StatEntity.h.
|
inline |
Definition at line 93 of file StatEntity.h.
|
inline |
Definition at line 49 of file StatEntity.h.
|
inline |
Definition at line 53 of file StatEntity.h.
|
inline |
Definition at line 72 of file StatEntity.h.
|
inline |
Definition at line 76 of file StatEntity.h.
|
inline |
Definition at line 58 of file StatEntity.h.
|
inline |
Definition at line 62 of file StatEntity.h.
|
inline |
Definition at line 45 of file StatEntity.h.
|
inline |
Definition at line 67 of file StatEntity.h.
|
inline |
Definition at line 41 of file StatEntity.h.
|
inline |
Definition at line 164 of file StatEntity.h.
|
inlineoverridevirtual |
Implements Gaudi::Accumulators::PrintableCounter.
Definition at line 176 of file StatEntity.h.
|
inlineoverridevirtual |
Reimplemented from Gaudi::Accumulators::PrintableCounter.
Definition at line 171 of file StatEntity.h.
|
inline |
Definition at line 160 of file StatEntity.h.
|
inlineoverridevirtual |
prints the counter to a stream
Implements Gaudi::Accumulators::PrintableCounter.
Definition at line 172 of file StatEntity.h.
|
inlineoverridevirtual |
prints the counter to a stream in table format, with the given tag
Reimplemented from Gaudi::Accumulators::PrintableCounter.
Definition at line 168 of file StatEntity.h.
|
inline |
Definition at line 117 of file StatEntity.h.
|
inline |
Definition at line 114 of file StatEntity.h.
|
inline |
Definition at line 109 of file StatEntity.h.
|
inline |
Definition at line 120 of file StatEntity.h.
|
inline |
Definition at line 89 of file StatEntity.h.
|
inline |
Definition at line 90 of file StatEntity.h.
|
inline |
Definition at line 91 of file StatEntity.h.
|
inline |
Definition at line 86 of file StatEntity.h.
|
inline |
Definition at line 180 of file StatEntity.h.
|
friend |
Definition at line 40 of file StatEntity.h.
|
friend |
|
inlinestatic |
Definition at line 25 of file StatEntity.h.