CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ErrorRDDM.cc
Go to the documentation of this file.
2 
3 using namespace rpcrawtodigi;
4 
6 {
7  return ( RDDM_TYPE_FLAG == static_cast<unsigned int>(record.data() >> RDDM_TYPE_SHIFT) );
8 }
9 
10 unsigned int ErrorRDDM::rmb() const
11 {
12  return ((theData >> RMB_SHIFT) & RMB_MASK);
13 }
14 
15 unsigned int ErrorRDDM::link() const
16 {
17  return (theData & LNK_MASK);
18 }
19 
20 
22 {
23  std::ostringstream str;
24  str <<" RDDM, rmb: "<< rmb() <<" lnk: "<<link();
25  return str.str();
26 }
27 
28 
unsigned int link() const
Definition: ErrorRDDM.cc:15
JetCorrectorParameters::Record record
Definition: classes.h:13
static const unsigned int RDDM_TYPE_FLAG
Definition: ErrorRDDM.h:22
unsigned int rmb() const
Definition: ErrorRDDM.cc:10
static const unsigned int LNK_MASK
Definition: ErrorRDDM.h:28
const Data & data() const
Definition: DataRecord.h:32
std::string print() const
Definition: ErrorRDDM.cc:21
static const unsigned int RDDM_TYPE_SHIFT
Definition: ErrorRDDM.h:23
static const unsigned int RMB_SHIFT
Definition: ErrorRDDM.h:26
static bool matchType(const DataRecord &record)
Definition: ErrorRDDM.cc:5
static const unsigned int RMB_MASK
Definition: ErrorRDDM.h:25