|
Gaudi Framework, version v23r9 |
| Home | Generated: Thu Jul 18 2013 |
The basic counter used for Monitoring purposes. More...
#include <GaudiKernel/StatEntity.h>
Public Member Functions | |
| StatEntity () | |
| the default constructor | |
| StatEntity (const unsigned long entries, const double flag, const double flag2, const double minFlag, const double maxFlag) | |
| ~StatEntity () | |
| destructor | |
| const unsigned long & | nEntries () const |
| getters | |
| const double & | sum () const |
| accumulated value | |
| const double & | sum2 () const |
| accumulated value**2 | |
| double | mean () const |
| mean value of counter | |
| double | rms () const |
| r.m.s of value | |
| double | meanErr () const |
| error in mean value of counter | |
| const double & | min () const |
| minimal value | |
| const double & | max () const |
| maximal value | |
| double | efficiency () const |
| Interpret the counter as some measure of efficiency The efficiency is calculated as the ratio of the weight over the number of entries One gets the correct interpretation in the case of filling the counters only with 0 and 1. | |
| double | efficiencyErr () const |
| Interpret the counter as some measure of efficiency and evaluate the uncertainty of this efficiency using binomial estimate. | |
| double | eff () const |
| shortcut, | |
| double | effErr () const |
| shortcut, | |
| StatEntity & | operator+= (const double f) |
| General increment operator for the flag Could be used for easy manipulation with StatEntity object: | |
| StatEntity & | operator++ () |
| Pre-increment operator for the flag Could be used for easy manipulation with StatEntity object: | |
| StatEntity & | operator++ (int) |
| Post-increment operator for the flag. | |
| StatEntity & | operator-= (const double f) |
| General decrement operator for the flag Could be used for easy manipulation with StatEntity object: | |
| StatEntity & | operator-- () |
| Pre-decrement operator for the flag Could be used for easy manipulation with StatEntity object: | |
| StatEntity & | operator-- (int) |
| Post-decrement operator for the flag Could be used for easy manipulation with StatEntity object: | |
| StatEntity & | operator= (const double f) |
| Assignment from the flag The action: reset and the general increment Such case could be useful for statistical monitoring. | |
| StatEntity & | operator+= (const StatEntity &other) |
| increment with other counter (useful for Monitoring/Adder ) | |
| bool | operator< (const StatEntity &se) const |
| comparison | |
| unsigned long | add (const double Flag) |
| add a value | |
| void | reset () |
| reset the counters | |
| void | setnEntriesBeforeReset (unsigned long nEntriesBeforeReset) |
| DR specify number of entry before reset. | |
| std::string | toString () const |
| representation as string | |
| std::ostream & | print (std::ostream &o=std::cout) const |
| printout to std::ostream | |
| std::ostream & | fillStream (std::ostream &o) const |
| printout to std::ostream | |
| double | Sum () const |
| get sum | |
| double | Mean () const |
| get mean | |
| double | MeanErr () const |
| get error in mean | |
| double | Rms () const |
| get rms | |
| double | RMS () const |
| get rms | |
| double | Eff () const |
| get efficiency | |
| double | Min () const |
| get minimal value | |
| double | Max () const |
| get maximal value | |
| double | flag () const |
| accumulated "flag" | |
| double | flag2 () const |
| accumulated "flag squared" | |
| double | flagMean () const |
| mean value of flag | |
| double | flagRMS () const |
| r.m.s of flag | |
| double | flagMeanErr () const |
| error in mean value of flag | |
| double | flagMin () const |
| minimal flag | |
| double | flagMax () const |
| maximal flag | |
| unsigned long | addFlag (const double Flag) |
| add a flag | |
Static Public Member Functions | |
| static const std::string & | format () |
| the internal format description | |
| static int | size () |
| the actual size of published data | |
Private Attributes | |
| unsigned long | m_se_nEntries |
| number of calls | |
| double | m_se_accumulatedFlag |
| accumulated flag | |
| double | m_se_accumulatedFlag2 |
| double | m_se_minimalFlag |
| double | m_se_maximalFlag |
| long | m_se_nEntriesBeforeReset |
The basic counter used for Monitoring purposes.
It is used as a small helper class for implementation of class ChronoStatSvc but it also could be used in stand-alone mode to perform trivial statistical evaluations. e.g.
Essentially the generic counter could be considered as the trivial 1-bin
Definition at line 68 of file StatEntity.h.
|
inline |
| StatEntity::StatEntity | ( | const unsigned long | entries, |
| const double | flag, | ||
| const double | flag2, | ||
| const double | minFlag, | ||
| const double | maxFlag | ||
| ) |
Definition at line 48 of file StatEntity.cpp.
|
inline |
| unsigned long StatEntity::add | ( | const double | Flag | ) |
add a value
| Flag | value to be added |
accumulate the flag
evaluate min/max
Definition at line 189 of file StatEntity.cpp.
|
inline |
add a flag
| Flag | value to be added |
Definition at line 416 of file StatEntity.h.
|
inline |
shortcut,
Definition at line 185 of file StatEntity.h.
|
inline |
|
inline |
shortcut,
Definition at line 187 of file StatEntity.h.
| double StatEntity::efficiency | ( | ) | const |
Interpret the counter as some measure of efficiency The efficiency is calculated as the ratio of the weight over the number of entries One gets the correct interpretation in the case of filling the counters only with 0 and 1.
Some checks are performed:
If these conditions are not satisfied the method returns -1, otherwise it returns the value of "flagMean"
Definition at line 123 of file StatEntity.cpp.
| double StatEntity::efficiencyErr | ( | ) | const |
Interpret the counter as some measure of efficiency and evaluate the uncertainty of this efficiency using binomial estimate.
The efficiency is calculated as the ratio of the weight over the number of entries One gets the correct interpretation in the case of filling the counters only with 0 and 1. Some checks are performed:
If these conditions are not satisfied the method returns -1.
Definition at line 135 of file StatEntity.cpp.
|
inline |
printout to std::ostream
| s | the reference to the output stream |
Definition at line 375 of file StatEntity.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
the internal format description
< check for "D"
Definition at line 63 of file StatEntity.cpp.
|
inline |
|
inline |
| double StatEntity::mean | ( | ) | const |
|
inline |
| double StatEntity::meanErr | ( | ) | const |
error in mean value of counter
Definition at line 108 of file StatEntity.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Pre-increment operator for the flag Could be used for easy manipulation with StatEntity object:
Definition at line 232 of file StatEntity.h.
|
inline |
Post-increment operator for the flag.
Actually it is the same as pre-increment. Could be used for easy manipulation with StatEntity object:
Definition at line 251 of file StatEntity.h.
|
inline |
General increment operator for the flag Could be used for easy manipulation with StatEntity object:
| f | counter increment |
Definition at line 210 of file StatEntity.h.
| StatEntity & StatEntity::operator+= | ( | const StatEntity & | other | ) |
increment with other counter (useful for Monitoring/Adder )
| other | counter to be added |
Definition at line 152 of file StatEntity.cpp.
|
inline |
Pre-decrement operator for the flag Could be used for easy manipulation with StatEntity object:
Definition at line 293 of file StatEntity.h.
|
inline |
Post-decrement operator for the flag Could be used for easy manipulation with StatEntity object:
Definition at line 311 of file StatEntity.h.
|
inline |
General decrement operator for the flag Could be used for easy manipulation with StatEntity object:
| f | counter increment |
Definition at line 271 of file StatEntity.h.
| bool StatEntity::operator< | ( | const StatEntity & | se | ) | const |
comparison
Definition at line 165 of file StatEntity.cpp.
|
inline |
Assignment from the flag The action: reset and the general increment Such case could be useful for statistical monitoring.
| f | new value of the counter |
< reset the statistics
< use the regular increment
Definition at line 329 of file StatEntity.h.
| std::ostream & StatEntity::print | ( | std::ostream & | o = std::cout | ) | const |
printout to std::ostream
| s | the reference to the output stream |
Definition at line 236 of file StatEntity.cpp.
| void StatEntity::reset | ( | ) |
reset the counters
Definition at line 209 of file StatEntity.cpp.
| double StatEntity::rms | ( | ) | const |
r.m.s of value
Definition at line 95 of file StatEntity.cpp.
|
inline |
|
inline |
| void StatEntity::setnEntriesBeforeReset | ( | unsigned long | nEntriesBeforeReset | ) |
DR specify number of entry before reset.
Definition at line 222 of file StatEntity.cpp.
|
static |
the actual size of published data
Definition at line 77 of file StatEntity.cpp.
|
inline |
|
inline |
|
inline |
accumulated value**2
Definition at line 100 of file StatEntity.h.
| std::string StatEntity::toString | ( | ) | const |
representation as string
Definition at line 227 of file StatEntity.cpp.
|
private |
accumulated flag
Definition at line 440 of file StatEntity.h.
|
private |
Definition at line 441 of file StatEntity.h.
|
private |
Definition at line 443 of file StatEntity.h.
|
private |
Definition at line 442 of file StatEntity.h.
|
private |
number of calls
Definition at line 438 of file StatEntity.h.
|
private |
Definition at line 445 of file StatEntity.h.