CMS 3D CMS Logo

rpcrawtodigi::ErrorRDDM Class Reference

#include <EventFilter/RPCRawToDigi/interface/ErrorRDDM.h>

Inheritance diagram for rpcrawtodigi::ErrorRDDM:

rpcrawtodigi::DataRecord

List of all members.

Public Member Functions

 ErrorRDDM (const DataRecord r)
unsigned int link () const
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 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


Detailed Description

Definition at line 10 of file ErrorRDDM.h.


Constructor & Destructor Documentation

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

Definition at line 13 of file ErrorRDDM.h.

00013 : DataRecord(r) {}


Member Function Documentation

unsigned int ErrorRDDM::link ( void   )  const

Definition at line 15 of file ErrorRDDM.cc.

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

Referenced by print().

00016 {
00017   return (theData & LNK_MASK);
00018 }

bool ErrorRDDM::matchType ( const DataRecord record  )  [static]

Definition at line 5 of file ErrorRDDM.cc.

References rpcrawtodigi::DataRecord::data(), RDDM_TYPE_FLAG, and RDDM_TYPE_SHIFT.

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

00006 {
00007   return ( RDDM_TYPE_FLAG == (record.data() >> RDDM_TYPE_SHIFT) ); 
00008 }

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

Reimplemented from rpcrawtodigi::DataRecord.

Definition at line 21 of file ErrorRDDM.cc.

References link(), and rmb().

00022 {
00023   std::ostringstream str;
00024   str <<" RDDM, rmb: "<< rmb() <<" lnk: "<<link();
00025   return str.str();
00026 } 

unsigned int ErrorRDDM::rmb (  )  const

Definition at line 10 of file ErrorRDDM.cc.

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

Referenced by print().

00011 {
00012   return ((theData >> RMB_SHIFT) & RMB_MASK);
00013 }


Member Data Documentation

const unsigned int rpcrawtodigi::ErrorRDDM::LNK_MASK = 0x1F [static, private]

Definition at line 28 of file ErrorRDDM.h.

Referenced by link().

const unsigned int rpcrawtodigi::ErrorRDDM::RDDM_TYPE_FLAG = 0x1E [static, private]

Definition at line 22 of file ErrorRDDM.h.

Referenced by matchType().

const unsigned int rpcrawtodigi::ErrorRDDM::RDDM_TYPE_SHIFT = 11 [static, private]

Definition at line 23 of file ErrorRDDM.h.

Referenced by matchType().

const unsigned int rpcrawtodigi::ErrorRDDM::RMB_MASK = 0x3F [static, private]

Definition at line 25 of file ErrorRDDM.h.

Referenced by rmb().

const unsigned int rpcrawtodigi::ErrorRDDM::RMB_SHIFT = 5 [static, private]

Definition at line 26 of file ErrorRDDM.h.

Referenced by rmb().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:52:31 2009 for CMSSW by  doxygen 1.5.4