Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef DataFormats_RPCDigi_ErrorRDM_H
0002 #define DataFormats_RPCDigi_ErrorRDM_H
0003 
0004 #include <bitset>
0005 #include <string>
0006 #include "DataFormats/RPCDigi/interface/DataRecord.h"
0007 
0008 namespace rpcrawtodigi {
0009 
0010   class ErrorRDM : public DataRecord {
0011   public:
0012     ErrorRDM(const DataRecord r) : DataRecord(r) {}
0013 
0014     static bool matchType(const DataRecord& record);
0015     std::string print() const;
0016 
0017     unsigned int rmb() const;
0018 
0019   private:
0020     static const unsigned int RDM_TYPE_FLAG = 0x3A1;  // 1110100001
0021     static const unsigned int RDM_TYPE_SHIFT = 6;
0022     static const unsigned int RMB_MASK = 0x3F;  // 111111
0023   };
0024 
0025 }  // namespace rpcrawtodigi
0026 
0027 #endif