CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DataFormats/RPCDigi/src/ErrorRDDM.cc

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