00001 #ifndef DataFormats_RPCDigi_ErrorRDDM_H 00002 #define DataFormats_RPCDigi_ErrorRDDM_H 00003 00004 #include <bitset> 00005 #include <string> 00006 #include "DataFormats/RPCDigi/interface/DataRecord.h" 00007 00008 namespace rpcrawtodigi { 00009 00010 class ErrorRDDM : public DataRecord { 00011 public: 00012 00013 ErrorRDDM(const DataRecord r) : DataRecord(r) {} 00014 00015 static bool matchType(const DataRecord & record); 00016 std::string print() const; 00017 00018 unsigned int rmb() const; 00019 unsigned int link() const; 00020 00021 private: 00022 static const unsigned int RDDM_TYPE_FLAG = 0x1E; // 11110 00023 static const unsigned int RDDM_TYPE_SHIFT = 11; 00024 00025 static const unsigned int RMB_MASK = 0x3F; // 111111 00026 static const unsigned int RMB_SHIFT = 5; 00027 00028 static const unsigned int LNK_MASK = 0x1F; //11111 00029 }; 00030 00031 } 00032 00033 #endif