CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
13 public:
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:
37  float expectedRMS_;
38  float sum_;
40  float weightedSum_;
42  int n_;
43 };
44 
45 std::ostream &operator<<(std::ostream &os, const CaloValidationStatistics &stat);
46 
47 #endif
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
~CaloValidationStatistics()
prints to LogInfo upon destruction
void addEntry(float value, float weight=1.)
CaloValidationStatistics(std::string name, float expectedMean, float expectedRMS)
int weight
Definition: histoStyle.py:51