1 #ifndef GAUDIKERNEL_STATENTITY_H 2 #define GAUDIKERNEL_STATENTITY_H 1 85 const double minFlag ,
86 const double maxFlag ) ;
97 const unsigned long&
nEntries ()
const {
return m_se_nEntries ; }
99 const double&
sum ()
const {
return m_se_accumulatedFlag ; }
101 const double&
sum2 ()
const {
return m_se_accumulatedFlag2 ; }
103 double mean ()
const ;
105 double rms ()
const ;
109 const double&
min ()
const {
return m_se_minimalFlag ; }
111 const double&
max ()
const {
return m_se_maximalFlag ; }
147 double efficiency ()
const ;
184 double efficiencyErr ()
const ;
186 double eff ()
const {
return efficiency () ; }
188 double effErr ()
const {
return efficiencyErr () ; }
362 unsigned long add (
const double Flag ) ;
366 void setnEntriesBeforeReset (
unsigned long nEntriesBeforeReset );
381 inline double Sum ()
const {
return sum () ; }
387 inline double Rms ()
const {
return rms () ; }
389 inline double RMS ()
const {
return rms () ; }
391 inline double Eff ()
const {
return eff () ; }
393 inline double Min ()
const {
return min () ; }
395 inline double Max ()
const {
return max () ; }
400 inline double flag ()
const {
return sum () ; }
402 inline double flag2 ()
const {
return sum2 () ; }
410 inline double flagMin ()
const {
return min () ; }
412 inline double flagMax ()
const {
return max () ; }
417 inline unsigned long addFlag (
const double Flag ) {
return add ( Flag ) ; }
522 " |%|7d| |%|11.7g| |%|#11.5g| |%|#10.5g| |%|#10.5g| |%|#10.5g| |" ,
524 "*|%|7d| |%|11.5g| |(%|#9.7g| +- %|-#8.6g|)%%| ----- | ----- |" );
589 const bool flag =
true ,
591 " %|-15.15s|%|17t||%|7d| |%|11.7g| |%|#11.5g| |%|#10.5g| |%|#10.5g| |%|#10.5g| |" ,
593 "*%|-15.15s|%|17t||%|7d| |%|11.5g| |(%|#9.7g| +- %|-#8.6g|)%%| ----- | ----- |" );
666 const bool flag =
true ,
668 " %|15.15s|%|-15.15s|%|32t||%|7d| |%|11.7g| |%|#11.5g| |%|#10.5g| |%|#10.5g| |%|#10.5g| |" ,
670 "*%|15.15s|%|-15.15s|%|32t||%|7d| |%|11.5g| |(%|#9.7g| +- %|-#8.6g|)%%| ----- | ----- |" ) ;
678 #endif // GAUDIKERNEL_STATENTITY_H double effErr() const
shortcut,
const double & max() const
maximal value
unsigned long m_se_nEntries
number of calls
StatEntity()
the default constructor
double Min() const
get minimal value
const unsigned long & nEntries() const
getters
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
double Mean() const
get mean
double flagRMS() const
r.m.s of flag
std::ostream & fillStream(std::ostream &o) const
printout to std::ostream
double sum(double x, double y, double z)
double flagMin() const
minimal flag
std::string toString(const TYPE &obj)
the generic implementation of the type conversion to the string
double flagMeanErr() const
error in mean value of flag
long m_se_nEntriesBeforeReset
double Max() const
get maximal value
const double & sum2() const
accumulated value**2
double flagMax() const
maximal flag
GAUDI_API std::string formatAsTableRow(const std::string &name, const std::string &group, const StatEntity &entity, const bool flag=true, const std::string &format1=" %|15.15s|%|-15.15s|%|32t||%|7d| |%|11.7g| |%|#11.5g| |%|#10.5g| |%|#10.5g| |%|#10.5g| |", const std::string &format2="*%|15.15s|%|-15.15s|%|32t||%|7d| |%|11.5g| |(%|#9.7g| +- %|-#8.6g|)%%| ----- | ----- |")
print the counter in a form of the table row
PropertyMgr & operator=(const PropertyMgr &)=delete
const double & sum() const
accumulated value
double eff() const
shortcut,
double MeanErr() const
get error in mean
double flagMean() const
mean value of flag
double Eff() const
get efficiency
double m_se_accumulatedFlag
accumulated flag
GAUDI_API StatEntity operator+(const StatEntity &entity, const double value)
external operator for addition of StatEntity and a number
const double & min() const
minimal value
double Sum() const
get sum
unsigned long addFlag(const double Flag)
add a flag
bool operator<(const EventIDBase &lhs, const EventIDBase &rhs)
GAUDI_API std::ostream & operator<<(std::ostream &stream, const StatEntity &entity)
external printout operator to std::ostream
double Rms() const
get rms
double RMS() const
get rms
The basic counter used for Monitoring purposes.
GAUDI_API StatEntity operator-(const StatEntity &entity, const double value)
external operator for subtraction of StatEntity and a number
double flag2() const
accumulated "flag squared"
Helper functions to set/get the application return code.
double flag() const
accumulated "flag"
double m_se_accumulatedFlag2