File indexing completed on 2024-04-06 12:22:55
0001 #ifndef MONLASERBLUEDAT_H
0002 #define MONLASERBLUEDAT_H
0003
0004 #include <vector>
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 MonLaserBlueDat : public IDataItem {
0013 public:
0014 friend class EcalCondDBInterface;
0015 MonLaserBlueDat();
0016 ~MonLaserBlueDat() override;
0017
0018
0019 inline std::string getTable() override { return "MON_LASER_BLUE_DAT"; }
0020
0021 inline void setAPDMean(float mean) { m_apdMean = mean; }
0022 inline float getAPDMean() const { return m_apdMean; }
0023
0024 inline void setAPDRMS(float rms) { m_apdRMS = rms; }
0025 inline float getAPDRMS() const { return m_apdRMS; }
0026
0027 inline void setAPDOverPNMean(float mean) { m_apdOverPNMean = mean; }
0028 inline float getAPDOverPNMean() const { return m_apdOverPNMean; }
0029
0030 inline void setAPDOverPNRMS(float rms) { m_apdOverPNRMS = rms; }
0031 inline float getAPDOverPNRMS() const { return m_apdOverPNRMS; }
0032
0033 inline void setTaskStatus(bool status) { m_taskStatus = status; }
0034 inline bool getTaskStatus() const { return m_taskStatus; }
0035
0036 private:
0037 void prepareWrite() noexcept(false) override;
0038
0039 void writeDB(const EcalLogicID* ecid, const MonLaserBlueDat* item, MonRunIOV* iov) noexcept(false);
0040
0041 void writeArrayDB(const std::map<EcalLogicID, MonLaserBlueDat>* data, MonRunIOV* iov) noexcept(false);
0042
0043 void fetchData(std::map<EcalLogicID, MonLaserBlueDat>* fillMap, MonRunIOV* iov) noexcept(false);
0044
0045
0046 float m_apdMean;
0047 float m_apdRMS;
0048 float m_apdOverPNMean;
0049 float m_apdOverPNRMS;
0050 bool m_taskStatus;
0051 };
0052
0053 #endif