File indexing completed on 2024-04-06 12:22:53
0001 #ifndef FECONFLUTGROUPDAT_H
0002 #define FECONFLUTGROUPDAT_H
0003
0004 #include <vector>
0005 #include <stdexcept>
0006
0007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h"
0008 #include "OnlineDB/EcalCondDB/interface/FEConfigLUTInfo.h"
0009 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
0010
0011 class FEConfigLUTGroupDat : public IDataItem {
0012 public:
0013 friend class EcalCondDBInterface;
0014 FEConfigLUTGroupDat();
0015 ~FEConfigLUTGroupDat() override;
0016
0017
0018 inline std::string getTable() override { return "FE_CONFIG_LUT_PER_GROUP_DAT"; }
0019
0020 inline void setLUTGroupId(int x) { m_group_id = x; }
0021 inline int getLUTGroupId() const { return m_group_id; }
0022
0023 inline void setLUTValue(int i, int x) { m_lut[i] = x; }
0024 inline int getLUTValue(int i) const { return m_lut[i]; }
0025
0026 private:
0027 void prepareWrite() noexcept(false) override;
0028
0029 void writeDB(const EcalLogicID* ecid, const FEConfigLUTGroupDat* item, FEConfigLUTInfo* iconf) noexcept(false);
0030
0031 void writeArrayDB(const std::map<EcalLogicID, FEConfigLUTGroupDat>* data, FEConfigLUTInfo* iconf) noexcept(false);
0032
0033 void fetchData(std::map<EcalLogicID, FEConfigLUTGroupDat>* fillMap, FEConfigLUTInfo* iconf) noexcept(false);
0034
0035
0036 int m_group_id;
0037 int m_lut[1024];
0038 };
0039
0040 #endif