5 #ifndef GAUDIKERNEL_STATENTITY_H
6 #define GAUDIKERNEL_STATENTITY_H 1
88 const double minFlag ,
89 const double maxFlag ) ;
96 const unsigned long&
nEntries ()
const {
return m_se_nEntries ; }
98 const double&
sum ()
const {
return m_se_accumulatedFlag ; }
100 const double&
sum2 ()
const {
return m_se_accumulatedFlag2 ; }
102 double mean ()
const ;
104 double rms ()
const ;
106 double meanErr ()
const ;
108 const double&
min ()
const {
return m_se_minimalFlag ; }
110 const double&
max ()
const {
return m_se_maximalFlag ; }
146 double efficiency ()
const ;
183 double efficiencyErr ()
const ;
185 double eff ()
const {
return efficiency () ; }
187 double effErr ()
const {
return efficiencyErr () ; }
361 unsigned long add (
const double Flag ) ;
365 void setnEntriesBeforeReset (
unsigned long nEntriesBeforeReset );
371 std::ostream& print ( std::ostream& o = std::cout )
const ;
375 std::ostream&
fillStream ( std::ostream& o )
const {
return print ( o ) ; }
380 inline double Sum ()
const {
return sum () ; }
382 inline double Mean ()
const {
return mean () ; }
384 inline double MeanErr ()
const {
return meanErr () ; }
386 inline double Rms ()
const {
return rms () ; }
388 inline double RMS ()
const {
return rms () ; }
390 inline double Eff ()
const {
return eff () ; }
392 inline double Min ()
const {
return min () ; }
394 inline double Max ()
const {
return max () ; }
399 inline double flag ()
const {
return sum () ; }
401 inline double flag2 ()
const {
return sum2 () ; }
403 inline double flagMean ()
const {
return mean () ; }
405 inline double flagRMS ()
const {
return rms () ; }
411 inline double flagMax ()
const {
return max () ; }
416 inline unsigned long addFlag (
const double Flag ) {
return add ( Flag ) ; }
426 static const std::string&
format () ;
518 const std::string& format1 =
519 " |%|7d| |%|11.7g| |%|#11.5g| |%|#10.5g| |%|#10.5g| |%|#10.5g| |" ,
520 const std::string& format2 =
521 "*|%|7d| |%|11.5g| |(%|#9.7g| +- %|-#8.6g|)%%| ----- | ----- |" );
584 (
const std::string& name ,
586 const bool flag =
true ,
587 const std::string& format1 =
588 " %|-15.15s|%|17t||%|7d| |%|11.7g| |%|#11.5g| |%|#10.5g| |%|#10.5g| |%|#10.5g| |" ,
589 const std::string& format2 =
590 "*%|-15.15s|%|17t||%|7d| |%|11.5g| |(%|#9.7g| +- %|-#8.6g|)%%| ----- | ----- |" );
660 (
const std::string& name ,
661 const std::string& group ,
663 const bool flag =
true ,
664 const std::string& format1 =
665 " %|15.15s|%|-15.15s|%|32t||%|7d| |%|11.7g| |%|#11.5g| |%|#10.5g| |%|#10.5g| |%|#10.5g| |" ,
666 const std::string& format2 =
667 "*%|15.15s|%|-15.15s|%|32t||%|7d| |%|11.5g| |(%|#9.7g| +- %|-#8.6g|)%%| ----- | ----- |" ) ;
675 #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 StatEntity &counter, const bool flag, const std::string &format1=" |%|7d| |%|11.7g| |%|#11.5g| |%|#10.5g| |%|#10.5g| |%|#10.5g| |", const std::string &format2="*|%|7d| |%|11.5g| |(%|#9.7g| +- %|-#8.6g|)%%| ----- | ----- |")
print the counter in a form of the table row
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
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.
This is a number of static methods for bootstrapping the Gaudi framework.
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"
bool operator<(const Gaudi::Time &t1, const Gaudi::Time &t2)
double flag() const
accumulated "flag"
double m_se_accumulatedFlag2