CMS 3D CMS Logo

ErrorRDM.h
Go to the documentation of this file.
1 #ifndef DataFormats_RPCDigi_ErrorRDM_H
2 #define DataFormats_RPCDigi_ErrorRDM_H
3 
4 #include <bitset>
5 #include <string>
7 
8 namespace rpcrawtodigi {
9 
10  class ErrorRDM : public DataRecord {
11  public:
13 
14  static bool matchType(const DataRecord& record);
15  std::string print() const;
16 
17  unsigned int rmb() const;
18 
19  private:
20  static const unsigned int RDM_TYPE_FLAG = 0x3A1; // 1110100001
21  static const unsigned int RDM_TYPE_SHIFT = 6;
22  static const unsigned int RMB_MASK = 0x3F; // 111111
23  };
24 
25 } // namespace rpcrawtodigi
26 
27 #endif
unsigned int rmb() const
Definition: ErrorRDM.cc:9
static const unsigned int RDM_TYPE_FLAG
Definition: ErrorRDM.h:20
static const unsigned int RDM_TYPE_SHIFT
Definition: ErrorRDM.h:21
static bool matchType(const DataRecord &record)
Definition: ErrorRDM.cc:5
std::string print() const
Definition: ErrorRDM.cc:11
ErrorRDM(const DataRecord r)
Definition: ErrorRDM.h:12
static const unsigned int RMB_MASK
Definition: ErrorRDM.h:22