CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ErrorRCDM.h
Go to the documentation of this file.
1 #ifndef DataFormats_RPCDigi_ErrorRCDM_H
2 #define DataFormats_RPCDigi_ErrorRCDM_H
3 
4 #include <bitset>
5 #include <string>
7 
8 namespace rpcrawtodigi {
9 
10  class ErrorRCDM : public DataRecord {
11  public:
13 
14  static bool matchType(const DataRecord& record);
15  std::string print() const;
16 
17  unsigned int rmb() const;
18  unsigned int link() const;
19 
20  private:
21  static const unsigned int RCDM_TYPE_FLAG = 0x1C; // 11100
22  static const unsigned int RCDM_TYPE_SHIFT = 11;
23 
24  static const unsigned int RMB_MASK = 0x3F; // 111111
25  static const unsigned int RMB_SHIFT = 5;
26 
27  static const unsigned int LNK_MASK = 0x1F; //11111
28  };
29 
30 } // namespace rpcrawtodigi
31 
32 #endif
unsigned int link() const
Definition: ErrorRCDM.cc:11
static const unsigned int LNK_MASK
Definition: ErrorRCDM.h:27
static const unsigned int RCDM_TYPE_FLAG
Definition: ErrorRCDM.h:21
static const unsigned int RCDM_TYPE_SHIFT
Definition: ErrorRCDM.h:22
unsigned int rmb() const
Definition: ErrorRCDM.cc:9
ErrorRCDM(const DataRecord r)
Definition: ErrorRCDM.h:12
static bool matchType(const DataRecord &record)
Definition: ErrorRCDM.cc:5
static const unsigned int RMB_SHIFT
Definition: ErrorRCDM.h:25
std::string print() const
Definition: ErrorRCDM.cc:13
static const unsigned int RMB_MASK
Definition: ErrorRCDM.h:24