File indexing completed on 2024-04-06 12:22:53
0001 #ifndef FECONFLUTDAT_H
0002 #define FECONFLUTDAT_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 FEConfigLUTDat : public IDataItem {
0012 public:
0013 friend class EcalCondDBInterface;
0014 FEConfigLUTDat();
0015 ~FEConfigLUTDat() override;
0016
0017
0018 inline std::string getTable() override { return "FE_CONFIG_LUT_DAT"; }
0019
0020 inline void setLUTGroupId(int x) { m_group_id = x; }
0021 inline int getLUTGroupId() const { return m_group_id; }
0022
0023 private:
0024 void prepareWrite() noexcept(false) override;
0025
0026 void writeDB(const EcalLogicID* ecid, const FEConfigLUTDat* item, FEConfigLUTInfo* iconf) noexcept(false);
0027
0028 void writeArrayDB(const std::map<EcalLogicID, FEConfigLUTDat>* data, FEConfigLUTInfo* iconf) noexcept(false);
0029
0030 void fetchData(std::map<EcalLogicID, FEConfigLUTDat>* fillMap, FEConfigLUTInfo* iconf) noexcept(false);
0031
0032
0033 int m_group_id;
0034 };
0035
0036 #endif