CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions | Private Attributes
CaloValidationStatistics Class Reference

#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_
 

Detailed Description

For validation purposes. This program calculates mean and RMS of a distribution

Rick Wilkinson

Definition at line 12 of file CaloValidationStatistics.h.

Constructor & Destructor Documentation

◆ CaloValidationStatistics()

CaloValidationStatistics::CaloValidationStatistics ( std::string  name,
float  expectedMean,
float  expectedRMS 
)

◆ ~CaloValidationStatistics()

CaloValidationStatistics::~CaloValidationStatistics ( )

prints to LogInfo upon destruction

Definition at line 16 of file CaloValidationStatistics.cc.

16 { edm::LogInfo("CaloValidationStatistics") << *this; }
Log< level::Info, false > LogInfo

Member Function Documentation

◆ addEntry()

void CaloValidationStatistics::addEntry ( float  value,
float  weight = 1. 
)

◆ expectedMean()

float CaloValidationStatistics::expectedMean ( ) const
inline

Definition at line 28 of file CaloValidationStatistics.h.

References expectedMean_.

◆ expectedRMS()

float CaloValidationStatistics::expectedRMS ( ) const
inline

Definition at line 30 of file CaloValidationStatistics.h.

References expectedRMS_.

◆ mean()

float CaloValidationStatistics::mean ( ) const

Definition at line 26 of file CaloValidationStatistics.cc.

References n_, and sum_.

◆ name()

std::string CaloValidationStatistics::name ( void  ) const
inline

Definition at line 20 of file CaloValidationStatistics.h.

References name_.

Referenced by config.CFG::__str__(), and validation.Sample::digest().

20 { return name_; }

◆ nEntries()

int CaloValidationStatistics::nEntries ( ) const
inline

Definition at line 32 of file CaloValidationStatistics.h.

References n_.

◆ RMS()

float CaloValidationStatistics::RMS ( ) const

◆ weightedMean()

float CaloValidationStatistics::weightedMean ( ) const

Member Data Documentation

◆ expectedMean_

float CaloValidationStatistics::expectedMean_
private

Definition at line 36 of file CaloValidationStatistics.h.

Referenced by expectedMean().

◆ expectedRMS_

float CaloValidationStatistics::expectedRMS_
private

Definition at line 37 of file CaloValidationStatistics.h.

Referenced by expectedRMS().

◆ n_

int CaloValidationStatistics::n_
private

Definition at line 42 of file CaloValidationStatistics.h.

Referenced by addEntry(), mean(), nEntries(), and RMS().

◆ name_

std::string CaloValidationStatistics::name_
private

Definition at line 35 of file CaloValidationStatistics.h.

Referenced by name().

◆ sum_

float CaloValidationStatistics::sum_
private

Definition at line 38 of file CaloValidationStatistics.h.

Referenced by addEntry(), mean(), and RMS().

◆ sumOfSquares_

float CaloValidationStatistics::sumOfSquares_
private

Definition at line 39 of file CaloValidationStatistics.h.

Referenced by addEntry(), and RMS().

◆ sumOfWeights_

float CaloValidationStatistics::sumOfWeights_
private

Definition at line 41 of file CaloValidationStatistics.h.

Referenced by addEntry(), and weightedMean().

◆ weightedSum_

float CaloValidationStatistics::weightedSum_
private

Definition at line 40 of file CaloValidationStatistics.h.

Referenced by addEntry(), and weightedMean().