00001 #ifndef EventFilter_RPCRawToDigi_ErrorRCDM_H 00002 #define EventFilter_RPCRawToDigi_ErrorRCDM_H 00003 00004 #include <bitset> 00005 #include <string> 00006 #include "EventFilter/RPCRawToDigi/interface/DataRecord.h" 00007 00008 namespace rpcrawtodigi { 00009 00010 class ErrorRCDM : public DataRecord { 00011 public: 00012 00013 ErrorRCDM(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 RCDM_TYPE_FLAG = 0x1C; // 11100 00023 static const unsigned int RCDM_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