CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CaloValidationStatistics.h
Go to the documentation of this file.
1 #ifndef CaloSimAlgos_CaloValidationStatistics_h
2 #define CaloSimAlgos_CaloValidationStatistics_h
3 
9 #include <string>
10 #include <iosfwd>
11 
13 {
14 public:
15  CaloValidationStatistics(std::string name, float expectedMean, float expectedRMS);
18 
19  void addEntry(float value, float weight=1.);
20 
21  std::string name() const {return name_;}
22 
23  float mean() const;
24 
25  float RMS() const;
26 
27  float weightedMean() const;
28 
29  float expectedMean() const {return expectedMean_;}
30 
31  float expectedRMS() const {return expectedRMS_;}
32 
33  int nEntries() const {return n_;}
34 
35 private:
36 
37  std::string name_;
39  float expectedRMS_;
40  float sum_;
42  float weightedSum_;
44  int n_;
45 };
46 
47 std::ostream & operator<<(std::ostream & os, const CaloValidationStatistics & stat);
48 
49 #endif
50 
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
~CaloValidationStatistics()
prints to LogInfo upon destruction
void addEntry(float value, float weight=1.)
CaloValidationStatistics(std::string name, float expectedMean, float expectedRMS)