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 #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
PTStatistics::m_rates
static const std::vector< long double > m_rates
Definition: PTStatistics.h:22
PTStatistics::toString
std::string toString()
Definition: PTStatistics.cc:40
PTStatistics::update
void update(PTStatistics &otherPtStats)
Definition: PTStatistics.cc:34
jetfilter_cfi.ptCut
ptCut
Definition: jetfilter_cfi.py:6
PTStatistics::sumR
long double sumR() const
Definition: PTStatistics.cc:93
PTStatistics::PTStatistics
PTStatistics()
Definition: PTStatistics.cc:32
PTStatistics::eff
long double eff(int ptCut)
Definition: PTStatistics.cc:50
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
PTStatistics::sum
long int sum() const
Definition: PTStatistics.cc:69
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
Constants.h
PTStatistics
Definition: PTStatistics.h:10