CMS 3D CMS Logo

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

#include <ErrorRCDM.h>

Inheritance diagram for rpcrawtodigi::ErrorRCDM:
rpcrawtodigi::DataRecord

Public Member Functions

 ErrorRCDM (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 RCDM_TYPE_FLAG = 0x1C
 
static const unsigned int RCDM_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 ErrorRCDM.h.

Constructor & Destructor Documentation

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

Definition at line 12 of file ErrorRCDM.h.

References link(), matchType(), print(), record, rmb(), and AlCaHLTBitMon_QueryRunRegistry::string.

12 : DataRecord(r) {}
DataRecord(const Data &data=None)
Definition: DataRecord.h:27

Member Function Documentation

unsigned int ErrorRCDM::link ( ) const

Definition at line 11 of file ErrorRCDM.cc.

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

Referenced by ErrorRCDM(), and print().

11 { return (theData & LNK_MASK); }
static const unsigned int LNK_MASK
Definition: ErrorRCDM.h:27
bool ErrorRCDM::matchType ( const DataRecord record)
static

Definition at line 5 of file ErrorRCDM.cc.

References rpcrawtodigi::DataRecord::data(), RCDM_TYPE_FLAG, and RCDM_TYPE_SHIFT.

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

5  {
6  return (RCDM_TYPE_FLAG == static_cast<unsigned int>(record.data() >> RCDM_TYPE_SHIFT));
7 }
const Data & data() const
Definition: DataRecord.h:31
static const unsigned int RCDM_TYPE_FLAG
Definition: ErrorRCDM.h:21
static const unsigned int RCDM_TYPE_SHIFT
Definition: ErrorRCDM.h:22
std::string ErrorRCDM::print ( void  ) const

Definition at line 13 of file ErrorRCDM.cc.

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

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

13  {
14  std::ostringstream str;
15  str << " RCDM, rmb: " << rmb() << " lnk: " << link();
16  return str.str();
17 }
unsigned int link() const
Definition: ErrorRCDM.cc:11
unsigned int rmb() const
Definition: ErrorRCDM.cc:9
#define str(s)
unsigned int ErrorRCDM::rmb ( ) const

Definition at line 9 of file ErrorRCDM.cc.

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

Referenced by ErrorRCDM(), and print().

9 { return ((theData >> RMB_SHIFT) & RMB_MASK); }
static const unsigned int RMB_SHIFT
Definition: ErrorRCDM.h:25
static const unsigned int RMB_MASK
Definition: ErrorRCDM.h:24

Member Data Documentation

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

Definition at line 27 of file ErrorRCDM.h.

Referenced by link().

const unsigned int rpcrawtodigi::ErrorRCDM::RCDM_TYPE_FLAG = 0x1C
staticprivate

Definition at line 21 of file ErrorRCDM.h.

Referenced by matchType().

const unsigned int rpcrawtodigi::ErrorRCDM::RCDM_TYPE_SHIFT = 11
staticprivate

Definition at line 22 of file ErrorRCDM.h.

Referenced by matchType().

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

Definition at line 24 of file ErrorRCDM.h.

Referenced by rmb().

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

Definition at line 25 of file ErrorRCDM.h.

Referenced by rmb().