CMS 3D CMS Logo

rpcrawtodigi::ErrorRDM Class Reference

#include <EventFilter/RPCRawToDigi/interface/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.

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

00006 {
00007   return ( RDM_TYPE_FLAG == (record.data() >> RDM_TYPE_SHIFT) ); 
00008 }

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

Reimplemented from rpcrawtodigi::DataRecord.

Definition at line 15 of file ErrorRDM.cc.

References rmb().

00016 {
00017   std::ostringstream str;
00018   str <<" RDM,  rmb: "<< rmb();
00019   return str.str();
00020 } 

unsigned int ErrorRDM::rmb (  )  const

Definition at line 10 of file ErrorRDM.cc.

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

Referenced by print().

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


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


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