CMS 3D CMS Logo

PTStatistics.h
Go to the documentation of this file.
1 #ifndef RPCPatts_PTStatistics_h
2 #define RPCPatts_PTStatistics_h
3 
4 
5 #include <vector>
6 #include <string>
7 #include <algorithm>
8 
9 
11 
12 class PTStatistics: public std::vector<long long> {
13  public:
14  PTStatistics();
15  void update(PTStatistics & otherPtStats);
16  long int sum(const int & ptCut) const;
17  long int sum() const;
18  long double sumR() const;
19  long double sumR(const int & ptCut) const;
20 
21 
22  long double eff(int ptCut);
24 
25  static const std::vector<long double> m_rates; // used for pur calculation
26 
27 };
28 
29 
30 #endif
void update(PTStatistics &otherPtStats)
Definition: PTStatistics.cc:39
static const std::vector< long double > m_rates
Definition: PTStatistics.h:25
long int sum() const
Definition: PTStatistics.cc:78
long double eff(int ptCut)
Definition: PTStatistics.cc:59
long double sumR() const
std::string toString()
Definition: PTStatistics.cc:48