CMS 3D CMS Logo

ErrorRCDM.cc
Go to the documentation of this file.
2 
3 using namespace rpcrawtodigi;
4 
6 {
7  return ( RCDM_TYPE_FLAG == static_cast<unsigned int>(record.data() >> RCDM_TYPE_SHIFT) );
8 }
9 
10 unsigned int ErrorRCDM::rmb() const
11 {
12  return ((theData >> RMB_SHIFT) & RMB_MASK);
13 }
14 
15 unsigned int ErrorRCDM::link() const
16 {
17  return (theData & LNK_MASK);
18 }
19 
20 
22 {
23  std::ostringstream str;
24  str <<" RCDM, rmb: "<< rmb() <<" lnk: "<<link();
25  return str.str();
26 }
27 
28 
unsigned int link() const
Definition: ErrorRCDM.cc:15
JetCorrectorParameters::Record record
Definition: classes.h:7
static const unsigned int LNK_MASK
Definition: ErrorRCDM.h:28
const Data & data() const
Definition: DataRecord.h:32
static const unsigned int RCDM_TYPE_FLAG
Definition: ErrorRCDM.h:22
static const unsigned int RCDM_TYPE_SHIFT
Definition: ErrorRCDM.h:23
unsigned int rmb() const
Definition: ErrorRCDM.cc:10
static bool matchType(const DataRecord &record)
Definition: ErrorRCDM.cc:5
static const unsigned int RMB_SHIFT
Definition: ErrorRCDM.h:26
std::string print() const
Definition: ErrorRCDM.cc:21
static const unsigned int RMB_MASK
Definition: ErrorRCDM.h:25