Go to the documentation of this file.00001 #ifndef RPCPatts_PTStatistics_h
00002 #define RPCPatts_PTStatistics_h
00003
00004
00005 #include <vector>
00006 #include <string>
00007 #include <algorithm>
00008
00009
00010 #include "Validation/MuonRPCGeometry/interface/Constants.h"
00011
00012 class PTStatistics: public std::vector<long long> {
00013 public:
00014 PTStatistics();
00015 void update(PTStatistics & otherPtStats);
00016 long int sum(const int & ptCut) const;
00017 long int sum() const;
00018 long double sumR() const;
00019 long double sumR(const int & ptCut) const;
00020
00021
00022 long double eff(int ptCut);
00023 std::string toString();
00024
00025 static bool rateInitilized;
00026 static std::vector<long double> m_rates;
00027
00028 };
00029
00030
00031 #endif