CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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);
23  std::string toString();
24 
25  static bool rateInitilized;
26  static std::vector<long double> m_rates; // used for pur calculation
27 
28 };
29 
30 
31 #endif
static std::vector< long double > m_rates
Definition: PTStatistics.h:26
void update(PTStatistics &otherPtStats)
Definition: PTStatistics.cc:40
static bool rateInitilized
Definition: PTStatistics.h:25
long int sum() const
Definition: PTStatistics.cc:79
long double eff(int ptCut)
Definition: PTStatistics.cc:60
long double sumR() const
std::string toString()
Definition: PTStatistics.cc:49