File indexing completed on 2024-04-06 12:22:53
0001 #ifndef FECONFFGREETOWERDAT_H
0002 #define FECONFFGREETOWERDAT_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 FEConfigFgrEETowerDat : public IDataItem {
0012 public:
0013 friend class EcalCondDBInterface;
0014 FEConfigFgrEETowerDat();
0015 ~FEConfigFgrEETowerDat() override;
0016
0017
0018 inline std::string getTable() override { return "FE_CONFIG_FGREETT_DAT"; }
0019
0020 inline void setLUTValue(int mean) { m_lut = mean; }
0021 inline int getLUTValue() const { return m_lut; }
0022 inline void setLutValue(int mean) { m_lut = mean; }
0023 inline int getLutValue() const { return m_lut; }
0024
0025 private:
0026 void prepareWrite() noexcept(false) override;
0027
0028 void writeDB(const EcalLogicID* ecid, const FEConfigFgrEETowerDat* item, FEConfigFgrInfo* iconf) noexcept(false);
0029
0030 void writeArrayDB(const std::map<EcalLogicID, FEConfigFgrEETowerDat>* data, FEConfigFgrInfo* iconf) noexcept(false);
0031
0032 void fetchData(std::map<EcalLogicID, FEConfigFgrEETowerDat>* fillMap, FEConfigFgrInfo* iconf) noexcept(false);
0033
0034
0035
0036 int m_lut;
0037 };
0038
0039 #endif