CMS 3D CMS Logo

ErrorRDDM.cc
Go to the documentation of this file.
2 
3 using namespace rpcrawtodigi;
4 
6  return (RDDM_TYPE_FLAG == static_cast<unsigned int>(record.data() >> RDDM_TYPE_SHIFT));
7 }
8 
9 unsigned int ErrorRDDM::rmb() const { return ((theData >> RMB_SHIFT) & RMB_MASK); }
10 
11 unsigned int ErrorRDDM::link() const { return (theData & LNK_MASK); }
12 
14  std::ostringstream str;
15  str << " RDDM, rmb: " << rmb() << " lnk: " << link();
16  return str.str();
17 }
ErrorRDDM.h
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
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
str
#define str(s)
Definition: TestProcessor.cc:53
rpcrawtodigi::ErrorRDDM::RMB_MASK
static const unsigned int RMB_MASK
Definition: ErrorRDDM.h:24
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
AlCaHarvesting_cff.record
record
Definition: AlCaHarvesting_cff.py:42
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
rpcrawtodigi::ErrorRDDM::matchType
static bool matchType(const DataRecord &record)
Definition: ErrorRDDM.cc:5
rpcrawtodigi::ErrorRDDM::LNK_MASK
static const unsigned int LNK_MASK
Definition: ErrorRDDM.h:27
rpcrawtodigi::DataRecord::theData
Data theData
Definition: DataRecord.h:46