CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PTStatistics.h
Go to the documentation of this file.
1 #ifndef RPCPatts_PTStatistics_h
2 #define RPCPatts_PTStatistics_h
3 
4 #include <vector>
5 #include <string>
6 #include <algorithm>
7 
9 
10 class PTStatistics : public std::vector<long long> {
11 public:
12  PTStatistics();
13  void update(PTStatistics& otherPtStats);
14  long int sum(const int& ptCut) const;
15  long int sum() const;
16  long double sumR() const;
17  long double sumR(const int& ptCut) const;
18 
19  long double eff(int ptCut);
21 
22  static const std::vector<long double> m_rates; // used for pur calculation
23 };
24 
25 #endif
void update(PTStatistics &otherPtStats)
Definition: PTStatistics.cc:34
static const std::vector< long double > m_rates
Definition: PTStatistics.h:22
long int sum() const
Definition: PTStatistics.cc:69
long double eff(int ptCut)
Definition: PTStatistics.cc:50
long double sumR() const
Definition: PTStatistics.cc:93
std::string toString()
Definition: PTStatistics.cc:40