CMS 3D CMS Logo

RPCRawDataCounts.h
Go to the documentation of this file.
1 #ifndef DataFormats_RPCDigi_RPCRawDataCounts_H
2 #define DataFormats_RPCDigi_RPCRawDataCounts_H
3 
4 #include <map>
5 #include <vector>
6 #include <string>
7 
8 namespace rpcrawtodigi {
9  class DataRecord;
10 }
11 namespace rpcrawtodigi {
12  class ReadoutError;
13 }
14 
16 public:
19  void addDccRecord(int fedId, const rpcrawtodigi::DataRecord& record, int weight = 1);
20  void addReadoutError(int fedId, const rpcrawtodigi::ReadoutError& error, int weight = 1);
21  void operator+=(const RPCRawDataCounts&);
22  std::string print() const;
23 
24  int fedBxRecords(int fedId) const;
25  int fedFormatErrors(int fedId) const;
26  int fedErrorRecords(int fedId) const;
27 
28 private:
29  friend class RPCMonitorRaw;
30  std::map<std::pair<int, int>, int> theRecordTypes;
31  std::map<std::pair<int, int>, int> theReadoutErrors;
32  std::map<std::pair<int, int>, int> theGoodEvents;
33  std::map<std::pair<int, int>, int> theBadEvents;
34 };
35 #endif
std::map< std::pair< int, int >, int > theReadoutErrors
JetCorrectorParameters::Record record
Definition: classes.h:7
Definition: weight.py:1
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
std::map< std::pair< int, int >, int > theRecordTypes
std::map< std::pair< int, int >, int > theGoodEvents
std::map< std::pair< int, int >, int > theBadEvents
Basic3DVector & operator+=(const Basic3DVector< U > &p)