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