CMS 3D CMS Logo

ErrorSDDM.h
Go to the documentation of this file.
1 #ifndef DataFormats_RPCDigi_ErrorSDDM_H
2 #define DataFormats_RPCDigi_ErrorSDDM_H
3 
4 #include <bitset>
5 #include <string>
7 
8 namespace rpcrawtodigi {
9 
10  class ErrorSDDM : public DataRecord {
11  private:
12  static const unsigned int SDDM_TYPE_FLAG = 0xE801; // 1110100000000001
13  public:
14  ErrorSDDM(const DataRecord& r = DataRecord(SDDM_TYPE_FLAG)) : DataRecord(r) {}
15  static bool matchType(const DataRecord& record) { return (SDDM_TYPE_FLAG == record.data()); }
16  std::string print() const { return " SDDM "; }
17  };
18 
19 } // namespace rpcrawtodigi
20 
21 #endif
JetCorrectorParameters::Record record
Definition: classes.h:7
DataRecord(const Data &data=None)
Definition: DataRecord.h:27
const Data & data() const
Definition: DataRecord.h:31
static const unsigned int SDDM_TYPE_FLAG
Definition: ErrorSDDM.h:12
static bool matchType(const DataRecord &record)
Definition: ErrorSDDM.h:15
ErrorSDDM(const DataRecord &r=DataRecord(SDDM_TYPE_FLAG))
Definition: ErrorSDDM.h:14
std::string print() const
Definition: ErrorSDDM.h:16