Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:37

0001 #include "DataFormats/RPCDigi/interface/ErrorRDDM.h"
0002 
0003 using namespace rpcrawtodigi;
0004 
0005 bool ErrorRDDM::matchType(const DataRecord& record) {
0006   return (RDDM_TYPE_FLAG == static_cast<unsigned int>(record.data() >> RDDM_TYPE_SHIFT));
0007 }
0008 
0009 unsigned int ErrorRDDM::rmb() const { return ((theData >> RMB_SHIFT) & RMB_MASK); }
0010 
0011 unsigned int ErrorRDDM::link() const { return (theData & LNK_MASK); }
0012 
0013 std::string ErrorRDDM::print() const {
0014   std::ostringstream str;
0015   str << " RDDM, rmb: " << rmb() << " lnk: " << link();
0016   return str.str();
0017 }