Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:05:08

0001 #ifndef DataFormats_RPCDigi_ErrorRCDM_H
0002 #define DataFormats_RPCDigi_ErrorRCDM_H
0003 
0004 #include <bitset>
0005 #include <string>
0006 #include "DataFormats/RPCDigi/interface/DataRecord.h"
0007 
0008 namespace rpcrawtodigi {
0009 
0010   class ErrorRCDM : public DataRecord {
0011   public:
0012     ErrorRCDM(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     unsigned int link() const;
0019 
0020   private:
0021     static const unsigned int RCDM_TYPE_FLAG = 0x1C;  // 11100
0022     static const unsigned int RCDM_TYPE_SHIFT = 11;
0023 
0024     static const unsigned int RMB_MASK = 0x3F;  // 111111
0025     static const unsigned int RMB_SHIFT = 5;
0026 
0027     static const unsigned int LNK_MASK = 0x1F;  //11111
0028   };
0029 
0030 }  // namespace rpcrawtodigi
0031 
0032 #endif