00001 #ifndef EventFilter_RPCRawToDigi_ErrorRDM_H 00002 #define EventFilter_RPCRawToDigi_ErrorRDM_H 00003 00004 #include <bitset> 00005 #include <string> 00006 #include "EventFilter/RPCRawToDigi/interface/DataRecord.h" 00007 00008 namespace rpcrawtodigi { 00009 00010 class ErrorRDM : public DataRecord { 00011 public: 00012 00013 ErrorRDM(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 00020 private: 00021 static const unsigned int RDM_TYPE_FLAG = 0x3A1; // 1110100001 00022 static const unsigned int RDM_TYPE_SHIFT = 6; 00023 static const unsigned int RMB_MASK = 0x3F; // 111111 00024 }; 00025 00026 } 00027 00028 #endif