CMS 3D CMS Logo

TSinglePedEntry.h
Go to the documentation of this file.
1 #ifndef TSinglePedEntry_h
2 #define TSinglePedEntry_h
3 
14 public:
18  TSinglePedEntry(const TSinglePedEntry& orig);
20  TSinglePedEntry& operator=(const TSinglePedEntry& orig) = default;
23 
25  void insert(const int& pedestal);
27  double average() const;
29  double RMS() const;
31  double RMSSq() const;
32 
33 private:
39  int m_entries;
40 };
41 
42 #endif
double RMS() const
get the RMS of the inserted values
double RMSSq() const
get the squared RMS of the inserted values
int m_pedestalSqSum
squared sum of entries
int m_entries
number of entries
double average() const
get the average of the inserted values
TSinglePedEntry & operator=(const TSinglePedEntry &orig)=default
assignment op
int m_pedestalSum
sum of entries
void insert(const int &pedestal)
add a single value