CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ErrorRCDM.cc
Go to the documentation of this file.
2 
3 using namespace rpcrawtodigi;
4 
6  return (RCDM_TYPE_FLAG == static_cast<unsigned int>(record.data() >> RCDM_TYPE_SHIFT));
7 }
8 
9 unsigned int ErrorRCDM::rmb() const { return ((theData >> RMB_SHIFT) & RMB_MASK); }
10 
11 unsigned int ErrorRCDM::link() const { return (theData & LNK_MASK); }
12 
14  std::ostringstream str;
15  str << " RCDM, rmb: " << rmb() << " lnk: " << link();
16  return str.str();
17 }
static const unsigned int LNK_MASK
Definition: ErrorRCDM.h:27
unsigned int rmb() const
Definition: ErrorRCDM.cc:9
std::string print() const
Definition: ErrorRCDM.cc:13
static const unsigned int RCDM_TYPE_FLAG
Definition: ErrorRCDM.h:21
static const unsigned int RCDM_TYPE_SHIFT
Definition: ErrorRCDM.h:22
unsigned int link() const
Definition: ErrorRCDM.cc:11
static bool matchType(const DataRecord &record)
Definition: ErrorRCDM.cc:5
static const unsigned int RMB_SHIFT
Definition: ErrorRCDM.h:25
static const unsigned int RMB_MASK
Definition: ErrorRCDM.h:24
#define str(s)