CMS 3D CMS Logo

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

#include <ErrorRDM.h>

Inheritance diagram for rpcrawtodigi::ErrorRDM:
rpcrawtodigi::DataRecord

Public Member Functions

 ErrorRDM (const DataRecord r)
 
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 RDM_TYPE_FLAG = 0x3A1
 
static const unsigned int RDM_TYPE_SHIFT = 6
 
static const unsigned int RMB_MASK = 0x3F
 

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 ErrorRDM.h.

Constructor & Destructor Documentation

◆ ErrorRDM()

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

Definition at line 12 of file ErrorRDM.h.

12 : DataRecord(r) {}

Member Function Documentation

◆ matchType()

bool ErrorRDM::matchType ( const DataRecord record)
static

Definition at line 5 of file ErrorRDM.cc.

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

References RDM_TYPE_FLAG, RDM_TYPE_SHIFT, and GlobalPosition_Frontier_DevDB_cff::record.

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

◆ print()

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

Definition at line 11 of file ErrorRDM.cc.

11  {
12  std::ostringstream str;
13  str << " RDM, rmb: " << rmb();
14  return str.str();
15 }

References rmb(), and str.

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

◆ rmb()

unsigned int ErrorRDM::rmb ( ) const

Definition at line 9 of file ErrorRDM.cc.

9 { return (theData & RMB_MASK); }

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

Referenced by print().

Member Data Documentation

◆ RDM_TYPE_FLAG

const unsigned int rpcrawtodigi::ErrorRDM::RDM_TYPE_FLAG = 0x3A1
staticprivate

Definition at line 20 of file ErrorRDM.h.

Referenced by matchType().

◆ RDM_TYPE_SHIFT

const unsigned int rpcrawtodigi::ErrorRDM::RDM_TYPE_SHIFT = 6
staticprivate

Definition at line 21 of file ErrorRDM.h.

Referenced by matchType().

◆ RMB_MASK

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

Definition at line 22 of file ErrorRDM.h.

Referenced by rmb().

rpcrawtodigi::ErrorRDM::RMB_MASK
static const unsigned int RMB_MASK
Definition: ErrorRDM.h:22
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
str
#define str(s)
Definition: TestProcessor.cc:52
rpcrawtodigi::ErrorRDM::RDM_TYPE_SHIFT
static const unsigned int RDM_TYPE_SHIFT
Definition: ErrorRDM.h:21
rpcrawtodigi::ErrorRDM::RDM_TYPE_FLAG
static const unsigned int RDM_TYPE_FLAG
Definition: ErrorRDM.h:20
alignCSCRings.r
r
Definition: alignCSCRings.py:93
rpcrawtodigi::ErrorRDM::rmb
unsigned int rmb() const
Definition: ErrorRDM.cc:9
rpcrawtodigi::DataRecord::theData
Data theData
Definition: DataRecord.h:46