#include <ErrorRDM.h>
Public Member Functions | |
ErrorRDM (const DataRecord r) | |
std::string | print () const |
unsigned int | rmb () const |
Static Public Member Functions | |
static bool | matchType (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 |
Definition at line 10 of file ErrorRDM.h.
rpcrawtodigi::ErrorRDM::ErrorRDM | ( | const DataRecord | r | ) | [inline] |
Definition at line 13 of file ErrorRDM.h.
: DataRecord(r) {}
bool ErrorRDM::matchType | ( | const DataRecord & | record | ) | [static] |
Definition at line 5 of file ErrorRDM.cc.
References rpcrawtodigi::DataRecord::data(), RDM_TYPE_FLAG, and RDM_TYPE_SHIFT.
Referenced by rpcrawtodigi::DataRecord::print(), and rpcrawtodigi::DataRecord::type().
{ return ( RDM_TYPE_FLAG == static_cast<unsigned int>(record.data() >> RDM_TYPE_SHIFT) ); }
std::string ErrorRDM::print | ( | void | ) | const |
Reimplemented from rpcrawtodigi::DataRecord.
Definition at line 15 of file ErrorRDM.cc.
References rmb().
Referenced by rpcrawtodigi::EventRecords::print(), and rpcrawtodigi::DataRecord::print().
{ std::ostringstream str; str <<" RDM, rmb: "<< rmb(); return str.str(); }
unsigned int ErrorRDM::rmb | ( | ) | const |
Definition at line 10 of file ErrorRDM.cc.
References RMB_MASK, and rpcrawtodigi::DataRecord::theData.
Referenced by print().
const unsigned int rpcrawtodigi::ErrorRDM::RDM_TYPE_FLAG = 0x3A1 [static, private] |
Definition at line 21 of file ErrorRDM.h.
Referenced by matchType().
const unsigned int rpcrawtodigi::ErrorRDM::RDM_TYPE_SHIFT = 6 [static, private] |
Definition at line 22 of file ErrorRDM.h.
Referenced by matchType().
const unsigned int rpcrawtodigi::ErrorRDM::RMB_MASK = 0x3F [static, private] |
Definition at line 23 of file ErrorRDM.h.
Referenced by rmb().