ATLAS Offline Software
Classes | Functions
ActsUtils Namespace Reference

Classes

class  Stat
 Simple class to gather statistics : min, max, mean, rms. More...
 
class  StatHist
 Extend Stat helper by an equidistant binned histogram. More...
 

Functions

template<class T_Stream >
void dumpStat (T_Stream &out, const Stat &stat)
 Dump the given statistics object to the given output stream. More...
 
std::ostream & operator<< (std::ostream &out, const Stat &stat)
 

Function Documentation

◆ dumpStat()

template<class T_Stream >
void ActsUtils::dumpStat ( T_Stream &  out,
const Stat stat 
)
inline

Dump the given statistics object to the given output stream.

Definition at line 62 of file StatUtils.h.

62  {
63  if (stat.n() > 1) {
64  out << std::setw(14) << stat.min() << " < "
65  << std::setw(14) << stat.mean() << " +- " << std::setw(14) << stat.rms() << " < "
66  << std::setw(14) << stat.max()
67  << " / " << std::setw(9) << stat.n();
68  }
69  else {
70  out << std::setw(14*4+9+3*3+4) << stat.mean();
71  }
72 }

◆ operator<<()

std::ostream& ActsUtils::operator<< ( std::ostream &  out,
const Stat stat 
)
inline

Definition at line 74 of file StatUtils.h.

74  {
75  dumpStat(out, stat);
76  return out;
77 }
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
ActsUtils::dumpStat
void dumpStat(T_Stream &out, const Stat &stat)
Dump the given statistics object to the given output stream.
Definition: StatUtils.h:62
beamspotman.stat
stat
Definition: beamspotman.py:266