Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:32:54

0001 #ifndef RPCPatts_PTStatistics_h
0002 #define RPCPatts_PTStatistics_h
0003 
0004 #include <vector>
0005 #include <string>
0006 #include <algorithm>
0007 
0008 #include "Validation/MuonRPCGeometry/interface/Constants.h"
0009 
0010 class PTStatistics : public std::vector<long long> {
0011 public:
0012   PTStatistics();
0013   void update(PTStatistics& otherPtStats);
0014   long int sum(const int& ptCut) const;
0015   long int sum() const;
0016   long double sumR() const;
0017   long double sumR(const int& ptCut) const;
0018 
0019   long double eff(int ptCut);
0020   std::string toString();
0021 
0022   static const std::vector<long double> m_rates;  // used for pur calculation
0023 };
0024 
0025 #endif