#include <TileTBStat.h>
Definition at line 57 of file TileTBStat.h.
◆ StatDouble()
| StatDouble::StatDouble |
( |
| ) |
|
◆ addValue()
| void StatDouble::addValue |
( |
double | Value | ) |
|
Definition at line 57 of file TileTBStat.cxx.
57 {
58 if (Value <= 0.0) return;
59 if (
Max < Value)
Max = Value;
60 if (
Min > Value)
Min = Value;
62 SumSq += Value * Value;
64}
◆ getChi2()
| double StatDouble::getChi2 |
( |
| ) |
|
◆ getMean()
| double StatDouble::getMean |
( |
| ) |
|
◆ print()
| void StatDouble::print |
( |
const char * | s, |
|
|
bool | minMaxOnly = false ) |
Definition at line 75 of file TileTBStat.cxx.
75 {
76 boost::io::ios_base_all_saver coutsave(std::cout);
77 std::cout <<
s <<
" " << std::fixed;
78 if (minMaxOnly) {
80 std::cout <<
" " << std::setw(4) << std::setprecision(1) <<
Min
81 <<
" - " << std::setw(4) << std::setprecision(1) <<
Max;
82 else
83 std::cout << " ---- - ----";
84 } else {
86 std::cout <<
" " << std::setw(4) << std::setprecision(1) <<
Min
87 <<
" - " << std::setw(4) << std::setprecision(1) <<
Max
88 <<
" mean= " << std::setw(6) << std::setprecision(3) <<
getMean()
89 <<
" rms= " << std::setw(5) << std::setprecision(3) <<
getChi2();
90 else
91 std::cout << " ---- - ---- mean= ------ rms= -----";
92 }
93 std::cout << std::endl;
94}
◆ Counter
◆ Max
◆ Min
◆ Sum
◆ SumSq
The documentation for this class was generated from the following files: