Loading [MathJax]/jax/input/TeX/config.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 63 of file StatUtils.h.

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

◆ operator<<()

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

Definition at line 75 of file StatUtils.h.

75  {
76  dumpStat(out, stat);
77  return out;
78 }
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:63
beamspotman.stat
stat
Definition: beamspotman.py:266