File indexing completed on 2024-04-06 12:22:57
0001 #ifndef RUNMEMTTERRORSDAT_H
0002 #define RUNMEMTTERRORSDAT_H
0003
0004 #include <vector>
0005 #include <stdexcept>
0006
0007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h"
0008 #include "OnlineDB/EcalCondDB/interface/RunIOV.h"
0009 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
0010 #include <cstdint>
0011
0012 class RunMemTTErrorsDat : public IDataItem {
0013 public:
0014 friend class EcalCondDBInterface;
0015 RunMemTTErrorsDat();
0016 ~RunMemTTErrorsDat() override;
0017
0018
0019 inline std::string getTable() override { return "RUN_MEM_TT_ERRORS_DAT"; }
0020
0021 inline void setErrorBits(uint64_t bits) { m_errorBits = bits; }
0022 inline uint64_t getErrorBits() const { return m_errorBits; }
0023
0024 private:
0025 void prepareWrite() noexcept(false) override;
0026
0027 void writeDB(const EcalLogicID* ecid, const RunMemTTErrorsDat* item, RunIOV* iov) noexcept(false);
0028
0029 void fetchData(std::map<EcalLogicID, RunMemTTErrorsDat>* fillMap, RunIOV* iov) noexcept(false);
0030
0031
0032 uint64_t m_errorBits;
0033 };
0034
0035 #endif