CMS 3D CMS Logo

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:
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 RDDM_TYPE_FLAG = 0x1E; // 11110
22  static const unsigned int RDDM_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
rpcrawtodigi::ErrorRDDM::RDDM_TYPE_SHIFT
static const unsigned int RDDM_TYPE_SHIFT
Definition: ErrorRDDM.h:22
rpcrawtodigi::DataRecord
Definition: DataRecord.h:10
rpcrawtodigi::ErrorRDDM::RDDM_TYPE_FLAG
static const unsigned int RDDM_TYPE_FLAG
Definition: ErrorRDDM.h:21
GlobalPosition_Frontier_DevDB_cff.record
record
Definition: GlobalPosition_Frontier_DevDB_cff.py:10
rpcrawtodigi
Definition: DataRecord.h:9
rpcrawtodigi::ErrorRDDM::rmb
unsigned int rmb() const
Definition: ErrorRDDM.cc:9
rpcrawtodigi::ErrorRDDM::print
std::string print() const
Definition: ErrorRDDM.cc:13
rpcrawtodigi::ErrorRDDM
Definition: ErrorRDDM.h:10
rpcrawtodigi::ErrorRDDM::RMB_MASK
static const unsigned int RMB_MASK
Definition: ErrorRDDM.h:24
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
rpcrawtodigi::ErrorRDDM::link
unsigned int link() const
Definition: ErrorRDDM.cc:11
rpcrawtodigi::ErrorRDDM::RMB_SHIFT
static const unsigned int RMB_SHIFT
Definition: ErrorRDDM.h:25
alignCSCRings.r
r
Definition: alignCSCRings.py:93
DataRecord.h
rpcrawtodigi::ErrorRDDM::matchType
static bool matchType(const DataRecord &record)
Definition: ErrorRDDM.cc:5
rpcrawtodigi::ErrorRDDM::ErrorRDDM
ErrorRDDM(const DataRecord r)
Definition: ErrorRDDM.h:12
rpcrawtodigi::ErrorRDDM::LNK_MASK
static const unsigned int LNK_MASK
Definition: ErrorRDDM.h:27