File indexing completed on 2024-04-06 12:22:55
0001 #ifndef MONDELAYSTTDAT_H
0002 #define MONDELAYSTTDAT_H
0003
0004 #include <map>
0005 #include <stdexcept>
0006
0007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h"
0008 #include "OnlineDB/EcalCondDB/interface/MonRunTag.h"
0009 #include "OnlineDB/EcalCondDB/interface/MonRunIOV.h"
0010 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
0011
0012 class MonDelaysTTDat : public IDataItem {
0013 public:
0014 friend class EcalCondDBInterface;
0015 MonDelaysTTDat();
0016 ~MonDelaysTTDat() override;
0017
0018
0019 inline std::string getTable() override { return "MON_DELAYS_TT_DAT"; }
0020
0021 inline void setDelayMean(float mean) { m_delayMean = mean; }
0022 inline float getDelayMean() const { return m_delayMean; }
0023
0024 inline void setDelayRMS(float rms) { m_delayRMS = rms; }
0025 inline float getDelayRMS() const { return m_delayRMS; }
0026
0027 inline void setTaskStatus(bool status) { m_taskStatus = status; }
0028 inline bool getTaskStatus() const { return m_taskStatus; }
0029
0030 private:
0031 void prepareWrite() noexcept(false) override;
0032
0033 void writeDB(const EcalLogicID* ecid, const MonDelaysTTDat* item, MonRunIOV* iov) noexcept(false);
0034
0035 void fetchData(std::map<EcalLogicID, MonDelaysTTDat>* fillVec, MonRunIOV* iov) noexcept(false);
0036
0037 void writeArrayDB(const std::map<EcalLogicID, MonDelaysTTDat>* data, MonRunIOV* iov) noexcept(false);
0038
0039
0040 float m_delayMean;
0041 float m_delayRMS;
0042 bool m_taskStatus;
0043 };
0044
0045 #endif