File indexing completed on 2024-04-06 12:22:53
0001 #ifndef FECONFFGRPARAMDAT_H
0002 #define FECONFFGRPARAMDAT_H
0003
0004 #include <vector>
0005 #include <stdexcept>
0006
0007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h"
0008 #include "OnlineDB/EcalCondDB/interface/FEConfigFgrInfo.h"
0009 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
0010
0011 class FEConfigFgrParamDat : public IDataItem {
0012 public:
0013 friend class EcalCondDBInterface;
0014 FEConfigFgrParamDat();
0015 ~FEConfigFgrParamDat() override;
0016
0017
0018 inline std::string getTable() override { return "FE_CONFIG_FGRPARAM_DAT"; }
0019
0020 inline void setFGlowthresh(float x) { m_fglowthresh = x; }
0021 inline void setFGhighthresh(float x) { m_fghighthresh = x; }
0022 inline void setFGlowratio(float x) { m_lowratio = x; }
0023 inline void setFGhighratio(float x) { m_highratio = x; }
0024
0025 inline float getFGlowthresh() const { return m_fglowthresh; }
0026 inline float getFGhighthresh() const { return m_fghighthresh; }
0027 inline float getFGlowratio() const { return m_lowratio; }
0028 inline float getFGhighratio() const { return m_highratio; }
0029
0030 private:
0031 void prepareWrite() noexcept(false) override;
0032
0033 void writeDB(const EcalLogicID* ecid, const FEConfigFgrParamDat* item, FEConfigFgrInfo* iconf) noexcept(false);
0034
0035 void writeArrayDB(const std::map<EcalLogicID, FEConfigFgrParamDat>* data, FEConfigFgrInfo* iconf) noexcept(false);
0036
0037 void fetchData(std::map<EcalLogicID, FEConfigFgrParamDat>* fillMap, FEConfigFgrInfo* iconf) noexcept(false);
0038
0039
0040 float m_fglowthresh;
0041 float m_fghighthresh;
0042 float m_lowratio;
0043 float m_highratio;
0044 };
0045
0046 #endif