File indexing completed on 2024-04-06 12:22:57
0001 #ifndef RUNPNERRORSDAT_H
0002 #define RUNPNERRORSDAT_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 RunPNErrorsDat : public IDataItem {
0013 public:
0014 friend class EcalCondDBInterface;
0015 RunPNErrorsDat();
0016 ~RunPNErrorsDat() override;
0017
0018
0019 inline std::string getTable() override { return "RUN_PN_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 RunPNErrorsDat* item, RunIOV* iov) noexcept(false);
0028
0029 void fetchData(std::map<EcalLogicID, RunPNErrorsDat>* fillMap, RunIOV* iov) noexcept(false);
0030
0031
0032 uint64_t m_errorBits;
0033 };
0034
0035 #endif