SimCalorimetry
CaloSimAlgos
interface
CaloValidationStatistics.h
Go to the documentation of this file.
1
#ifndef CaloSimAlgos_CaloValidationStatistics_h
2
#define CaloSimAlgos_CaloValidationStatistics_h
3
9
#include <iosfwd>
10
#include <string>
11
12
class
CaloValidationStatistics
{
13
public
:
14
CaloValidationStatistics
(
std::string
name
,
float
expectedMean
,
float
expectedRMS
);
16
~CaloValidationStatistics
();
17
18
void
addEntry
(
float
value
,
float
weight
= 1.);
19
20
std::string
name
()
const
{
return
name_
; }
21
22
float
mean
()
const
;
23
24
float
RMS
()
const
;
25
26
float
weightedMean
()
const
;
27
28
float
expectedMean
()
const
{
return
expectedMean_
; }
29
30
float
expectedRMS
()
const
{
return
expectedRMS_
; }
31
32
int
nEntries
()
const
{
return
n_
; }
33
34
private
:
35
std::string
name_
;
36
float
expectedMean_
;
37
float
expectedRMS_
;
38
float
sum_
;
39
float
sumOfSquares_
;
40
float
weightedSum_
;
41
float
sumOfWeights_
;
42
int
n_
;
43
};
44
45
std::ostream &
operator<<
(std::ostream &os,
const
CaloValidationStatistics
&
stat
);
46
47
#endif
CaloValidationStatistics
Definition:
CaloValidationStatistics.h:12
CaloValidationStatistics::sumOfSquares_
float sumOfSquares_
Definition:
CaloValidationStatistics.h:39
operator<<
std::ostream & operator<<(std::ostream &os, const CaloValidationStatistics &stat)
Definition:
CaloValidationStatistics.cc:36
CaloValidationStatistics::name_
std::string name_
Definition:
CaloValidationStatistics.h:35
CaloValidationStatistics::expectedRMS_
float expectedRMS_
Definition:
CaloValidationStatistics.h:37
CaloValidationStatistics::sumOfWeights_
float sumOfWeights_
Definition:
CaloValidationStatistics.h:41
CaloValidationStatistics::n_
int n_
Definition:
CaloValidationStatistics.h:42
CaloValidationStatistics::sum_
float sum_
Definition:
CaloValidationStatistics.h:38
CaloValidationStatistics::RMS
float RMS() const
Definition:
CaloValidationStatistics.cc:28
CaloValidationStatistics::weightedMean
float weightedMean() const
Definition:
CaloValidationStatistics.cc:34
CaloValidationStatistics::nEntries
int nEntries() const
Definition:
CaloValidationStatistics.h:32
CaloValidationStatistics::CaloValidationStatistics
CaloValidationStatistics(std::string name, float expectedMean, float expectedRMS)
Definition:
CaloValidationStatistics.cc:6
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
CaloValidationStatistics::~CaloValidationStatistics
~CaloValidationStatistics()
prints to LogInfo upon destruction
Definition:
CaloValidationStatistics.cc:16
value
Definition:
value.py:1
CaloValidationStatistics::expectedMean
float expectedMean() const
Definition:
CaloValidationStatistics.h:28
CaloValidationStatistics::expectedRMS
float expectedRMS() const
Definition:
CaloValidationStatistics.h:30
CaloValidationStatistics::name
std::string name() const
Definition:
CaloValidationStatistics.h:20
edm_modernize_messagelogger.stat
stat
Definition:
edm_modernize_messagelogger.py:27
CaloValidationStatistics::expectedMean_
float expectedMean_
Definition:
CaloValidationStatistics.h:36
CaloValidationStatistics::weightedSum_
float weightedSum_
Definition:
CaloValidationStatistics.h:40
CaloValidationStatistics::addEntry
void addEntry(float value, float weight=1.)
Definition:
CaloValidationStatistics.cc:18
CaloValidationStatistics::mean
float mean() const
Definition:
CaloValidationStatistics.cc:26
weight
Definition:
weight.py:1
Generated for CMSSW Reference Manual by
1.8.16