CMS 3D CMS Logo

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