CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Static Private Attributes

rpcrawtodigi::ErrorRDM Class Reference

#include <ErrorRDM.h>

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

List of all members.

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

Detailed Description

Definition at line 10 of file ErrorRDM.h.


Constructor & Destructor Documentation

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

Definition at line 13 of file ErrorRDM.h.

: DataRecord(r) {}

Member Function Documentation

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().

{
  return (theData & RMB_MASK);
}

Member Data Documentation

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().