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 }
unsigned int link() const
Definition: ErrorRDDM.cc:11
JetCorrectorParameters::Record record
Definition: classes.h:7
static const unsigned int RDDM_TYPE_FLAG
Definition: ErrorRDDM.h:21
unsigned int rmb() const
Definition: ErrorRDDM.cc:9
static const unsigned int LNK_MASK
Definition: ErrorRDDM.h:27
const Data & data() const
Definition: DataRecord.h:31
std::string print() const
Definition: ErrorRDDM.cc:13
static const unsigned int RDDM_TYPE_SHIFT
Definition: ErrorRDDM.h:22
static const unsigned int RMB_SHIFT
Definition: ErrorRDDM.h:25
static bool matchType(const DataRecord &record)
Definition: ErrorRDDM.cc:5
static const unsigned int RMB_MASK
Definition: ErrorRDDM.h:24
#define str(s)