Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:37

0001 #ifndef DataFormats_RPCDigi_RPCRawDataCounts_H
0002 #define DataFormats_RPCDigi_RPCRawDataCounts_H
0003 
0004 #include <map>
0005 #include <vector>
0006 #include <string>
0007 
0008 namespace rpcrawtodigi {
0009   class DataRecord;
0010 }
0011 namespace rpcrawtodigi {
0012   class ReadoutError;
0013 }
0014 
0015 class RPCRawDataCounts {
0016 public:
0017   RPCRawDataCounts() {}
0018   ~RPCRawDataCounts() {}
0019   void addDccRecord(int fedId, const rpcrawtodigi::DataRecord& record, int weight = 1);
0020   void addReadoutError(int fedId, const rpcrawtodigi::ReadoutError& error, int weight = 1);
0021   void operator+=(const RPCRawDataCounts&);
0022   std::string print() const;
0023 
0024   int fedBxRecords(int fedId) const;
0025   int fedFormatErrors(int fedId) const;
0026   int fedErrorRecords(int fedId) const;
0027 
0028 private:
0029   friend class RPCMonitorRaw;
0030   std::map<std::pair<int, int>, int> theRecordTypes;
0031   std::map<std::pair<int, int>, int> theReadoutErrors;
0032   std::map<std::pair<int, int>, int> theGoodEvents;
0033   std::map<std::pair<int, int>, int> theBadEvents;
0034 };
0035 #endif