CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/DataFormats/RPCDigi/src/ErrorRCDM.cc

Go to the documentation of this file.
00001 #include "DataFormats/RPCDigi/interface/ErrorRCDM.h"
00002 
00003 using namespace rpcrawtodigi;
00004 
00005 bool ErrorRCDM::matchType(const DataRecord & record)
00006 {
00007   return ( RCDM_TYPE_FLAG == static_cast<unsigned int>(record.data() >> RCDM_TYPE_SHIFT) ); 
00008 }
00009 
00010 unsigned int ErrorRCDM::rmb() const
00011 {
00012   return ((theData >> RMB_SHIFT) & RMB_MASK);
00013 }
00014 
00015 unsigned int ErrorRCDM::link() const
00016 {
00017   return (theData & LNK_MASK);
00018 }
00019 
00020 
00021 std::string ErrorRCDM::print() const
00022 {
00023   std::ostringstream str;
00024   str <<" RCDM,  rmb: "<< rmb() <<" lnk: "<<link();
00025   return str.str();
00026 } 
00027 
00028