00001 #include "DataFormats/RPCDigi/interface/ErrorRDM.h" 00002 00003 using namespace rpcrawtodigi; 00004 00005 bool ErrorRDM::matchType(const DataRecord & record) 00006 { 00007 return ( RDM_TYPE_FLAG == static_cast<unsigned int>(record.data() >> RDM_TYPE_SHIFT) ); 00008 } 00009 00010 unsigned int ErrorRDM::rmb() const 00011 { 00012 return (theData & RMB_MASK); 00013 } 00014 00015 std::string ErrorRDM::print() const 00016 { 00017 std::ostringstream str; 00018 str <<" RDM, rmb: "<< rmb(); 00019 return str.str(); 00020 } 00021 00022