#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 | ( | ) |
prints to LogInfo upon destruction
Definition at line 19 of file CaloValidationStatistics.cc.
void CaloValidationStatistics::addEntry | ( | float | value, |
float | weight = 1. |
||
) |
Definition at line 24 of file CaloValidationStatistics.cc.
References n_, sum_, sumOfSquares_, sumOfWeights_, relativeConstraints::value, puppiForMET_cff::weight, and weightedSum_.
Referenced by CastorDigiStatistics::analyze(), HcalDigiStatistics::analyze(), and CaloHitAnalyzer::analyze().
|
inline |
Definition at line 29 of file CaloValidationStatistics.h.
References expectedMean_.
Referenced by operator<<().
|
inline |
Definition at line 31 of file CaloValidationStatistics.h.
References expectedRMS_.
Referenced by operator<<().
float CaloValidationStatistics::mean | ( | ) | const |
|
inline |
Definition at line 21 of file CaloValidationStatistics.h.
References name_.
Referenced by cuy.divideElement::__init__(), cuy.plotElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), config.CFG::__str__(), validation.Sample::digest(), and operator<<().
|
inline |
Definition at line 33 of file CaloValidationStatistics.h.
References n_.
Referenced by operator<<().
float CaloValidationStatistics::RMS | ( | ) | const |
Definition at line 38 of file CaloValidationStatistics.cc.
References cuy::denominator, n_, cuy::numerator, mathSSE::sqrt(), sum_, and sumOfSquares_.
Referenced by operator<<().
float CaloValidationStatistics::weightedMean | ( | ) | const |
Definition at line 45 of file CaloValidationStatistics.cc.
References sumOfWeights_, and weightedSum_.
|
private |
Definition at line 38 of file CaloValidationStatistics.h.
Referenced by expectedMean().
|
private |
Definition at line 39 of file CaloValidationStatistics.h.
Referenced by expectedRMS().
|
private |
Definition at line 44 of file CaloValidationStatistics.h.
Referenced by addEntry(), mean(), nEntries(), and RMS().
|
private |
Definition at line 37 of file CaloValidationStatistics.h.
Referenced by name().
|
private |
Definition at line 40 of file CaloValidationStatistics.h.
Referenced by addEntry(), mean(), and RMS().
|
private |
Definition at line 41 of file CaloValidationStatistics.h.
Referenced by addEntry(), and RMS().
|
private |
Definition at line 43 of file CaloValidationStatistics.h.
Referenced by addEntry(), and weightedMean().
|
private |
Definition at line 42 of file CaloValidationStatistics.h.
Referenced by addEntry(), and weightedMean().