CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Static Private Attributes
rpcrawtodigi::ErrorRDDM Class Reference

#include <ErrorRDDM.h>

Inheritance diagram for rpcrawtodigi::ErrorRDDM:
rpcrawtodigi::DataRecord

Public Member Functions

 ErrorRDDM (const DataRecord r)
 
unsigned int link () const
 
std::string print () const
 
unsigned int rmb () const
 
- Public Member Functions inherited from rpcrawtodigi::DataRecord
const Datadata () const
 
 DataRecord (const Data &data=None)
 
std::string print () const
 
DataRecordType type () const
 
virtual ~DataRecord ()
 

Static Public Member Functions

static bool matchType (const DataRecord &record)
 
- Static Public Member Functions inherited from rpcrawtodigi::DataRecord
static std::string name (const DataRecordType &code)
 
static std::string print (const DataRecord &record)
 

Static Private Attributes

static const unsigned int LNK_MASK = 0x1F
 
static const unsigned int RDDM_TYPE_FLAG = 0x1E
 
static const unsigned int RDDM_TYPE_SHIFT = 11
 
static const unsigned int RMB_MASK = 0x3F
 
static const unsigned int RMB_SHIFT = 5
 

Additional Inherited Members

- Public Types inherited from rpcrawtodigi::DataRecord
typedef uint16_t Data
 
enum  DataRecordType {
  None = 0, StartOfBXData = 1, StartOfTbLinkInputNumberData = 2, ChamberData = 3,
  Empty = 4, RDDM = 5, SDDM = 6, RCDM = 7,
  RDM = 8, UndefinedType = 9
}
 
- Protected Attributes inherited from rpcrawtodigi::DataRecord
Data theData
 

Detailed Description

Definition at line 10 of file ErrorRDDM.h.

Constructor & Destructor Documentation

◆ ErrorRDDM()

rpcrawtodigi::ErrorRDDM::ErrorRDDM ( const DataRecord  r)
inline

Definition at line 12 of file ErrorRDDM.h.

12 : DataRecord(r) {}

Member Function Documentation

◆ link()

unsigned int ErrorRDDM::link ( ) const

Definition at line 11 of file ErrorRDDM.cc.

11 { return (theData & LNK_MASK); }

References LNK_MASK, and rpcrawtodigi::DataRecord::theData.

Referenced by print().

◆ matchType()

bool ErrorRDDM::matchType ( const DataRecord record)
static

Definition at line 5 of file ErrorRDDM.cc.

5  {
6  return (RDDM_TYPE_FLAG == static_cast<unsigned int>(record.data() >> RDDM_TYPE_SHIFT));
7 }

References RDDM_TYPE_FLAG, RDDM_TYPE_SHIFT, and GlobalPosition_Frontier_DevDB_cff::record.

Referenced by rpcrawtodigi::DataRecord::print(), and rpcrawtodigi::DataRecord::type().

◆ print()

std::string ErrorRDDM::print ( void  ) const

Definition at line 13 of file ErrorRDDM.cc.

13  {
14  std::ostringstream str;
15  str << " RDDM, rmb: " << rmb() << " lnk: " << link();
16  return str.str();
17 }

References link(), rmb(), and str.

Referenced by rpcrawtodigi::DataRecord::print(), and rpcrawtodigi::EventRecords::print().

◆ rmb()

unsigned int ErrorRDDM::rmb ( ) const

Definition at line 9 of file ErrorRDDM.cc.

9 { return ((theData >> RMB_SHIFT) & RMB_MASK); }

References RMB_MASK, RMB_SHIFT, and rpcrawtodigi::DataRecord::theData.

Referenced by print().

Member Data Documentation

◆ LNK_MASK

const unsigned int rpcrawtodigi::ErrorRDDM::LNK_MASK = 0x1F
staticprivate

Definition at line 27 of file ErrorRDDM.h.

Referenced by link().

◆ RDDM_TYPE_FLAG

const unsigned int rpcrawtodigi::ErrorRDDM::RDDM_TYPE_FLAG = 0x1E
staticprivate

Definition at line 21 of file ErrorRDDM.h.

Referenced by matchType().

◆ RDDM_TYPE_SHIFT

const unsigned int rpcrawtodigi::ErrorRDDM::RDDM_TYPE_SHIFT = 11
staticprivate

Definition at line 22 of file ErrorRDDM.h.

Referenced by matchType().

◆ RMB_MASK

const unsigned int rpcrawtodigi::ErrorRDDM::RMB_MASK = 0x3F
staticprivate

Definition at line 24 of file ErrorRDDM.h.

Referenced by rmb().

◆ RMB_SHIFT

const unsigned int rpcrawtodigi::ErrorRDDM::RMB_SHIFT = 5
staticprivate

Definition at line 25 of file ErrorRDDM.h.

Referenced by rmb().

rpcrawtodigi::ErrorRDDM::RDDM_TYPE_SHIFT
static const unsigned int RDDM_TYPE_SHIFT
Definition: ErrorRDDM.h:22
rpcrawtodigi::ErrorRDDM::RDDM_TYPE_FLAG
static const unsigned int RDDM_TYPE_FLAG
Definition: ErrorRDDM.h:21
GlobalPosition_Frontier_DevDB_cff.record
record
Definition: GlobalPosition_Frontier_DevDB_cff.py:10
rpcrawtodigi::DataRecord::DataRecord
DataRecord(const Data &data=None)
Definition: DataRecord.h:27
rpcrawtodigi::ErrorRDDM::rmb
unsigned int rmb() const
Definition: ErrorRDDM.cc:9
str
#define str(s)
Definition: TestProcessor.cc:51
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
alignCSCRings.r
r
Definition: alignCSCRings.py:93
rpcrawtodigi::ErrorRDDM::LNK_MASK
static const unsigned int LNK_MASK
Definition: ErrorRDDM.h:27
rpcrawtodigi::DataRecord::theData
Data theData
Definition: DataRecord.h:46