#include <CaloValidationStatistics.h>
Public Member Functions | |
void | addEntry (float value, float weight=1.) |
CaloValidationStatistics (std::string name, float expectedMean, float expectedRMS) | |
float | expectedMean () const |
float | expectedRMS () const |
float | mean () const |
std::string | name () const |
int | nEntries () const |
float | RMS () const |
float | weightedMean () const |
~CaloValidationStatistics () | |
prints to LogInfo upon destruction More... | |
Private Attributes | |
float | expectedMean_ |
float | expectedRMS_ |
int | n_ |
std::string | name_ |
float | sum_ |
float | sumOfSquares_ |
float | sumOfWeights_ |
float | weightedSum_ |
For validation purposes. This program calculates mean and RMS of a distribution
Rick Wilkinson
Definition at line 12 of file CaloValidationStatistics.h.
CaloValidationStatistics::CaloValidationStatistics | ( | std::string | name, |
float | expectedMean, | ||
float | expectedRMS | ||
) |
Definition at line 6 of file CaloValidationStatistics.cc.
CaloValidationStatistics::~CaloValidationStatistics | ( | ) |
void CaloValidationStatistics::addEntry | ( | float | value, |
float | weight = 1. |
||
) |
Definition at line 18 of file CaloValidationStatistics.cc.
References n_, sum_, sumOfSquares_, sumOfWeights_, relativeConstraints::value, mps_merge::weight, and weightedSum_.
Referenced by CaloHitAnalyzer::analyze(), CastorDigiStatistics::analyze(), and HcalDigiStatistics::analyze().
|
inline |
|
inline |
float CaloValidationStatistics::mean | ( | ) | const |
Definition at line 26 of file CaloValidationStatistics.cc.
|
inline |
Definition at line 20 of file CaloValidationStatistics.h.
References name_.
Referenced by config.CFG::__str__(), and validation.Sample::digest().
|
inline |
float CaloValidationStatistics::RMS | ( | ) | const |
Definition at line 28 of file CaloValidationStatistics.cc.
References bTagMiniDQMDeepCSV::denominator, n_, bTagMiniDQMDeepCSV::numerator, mathSSE::sqrt(), sum_, and sumOfSquares_.
float CaloValidationStatistics::weightedMean | ( | ) | const |
Definition at line 34 of file CaloValidationStatistics.cc.
References sumOfWeights_, and weightedSum_.
|
private |
Definition at line 36 of file CaloValidationStatistics.h.
Referenced by expectedMean().
|
private |
Definition at line 37 of file CaloValidationStatistics.h.
Referenced by expectedRMS().
|
private |
Definition at line 42 of file CaloValidationStatistics.h.
Referenced by addEntry(), mean(), nEntries(), and RMS().
|
private |
Definition at line 35 of file CaloValidationStatistics.h.
Referenced by name().
|
private |
Definition at line 38 of file CaloValidationStatistics.h.
Referenced by addEntry(), mean(), and RMS().
|
private |
Definition at line 39 of file CaloValidationStatistics.h.
Referenced by addEntry(), and RMS().
|
private |
Definition at line 41 of file CaloValidationStatistics.h.
Referenced by addEntry(), and weightedMean().
|
private |
Definition at line 40 of file CaloValidationStatistics.h.
Referenced by addEntry(), and weightedMean().