CMS 3D CMS Logo

FEConfigOddWeightGroupDat.h
Go to the documentation of this file.
1 #ifndef ONLINEDB_ECALCONDDB_FECONFIGODDWEIGHTGROUPDAT_H
2 #define ONLINEDB_ECALCONDDB_FECONFIGODDWEIGHTGROUPDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
10 
12 public:
13  friend class EcalCondDBInterface; // XXX temp should not need
15  ~FEConfigOddWeightGroupDat() override;
16 
17  // User data methods
18  inline std::string getTable() override { return "FE_WEIGHT2_PER_GROUP_DAT"; }
19 
20  inline void setWeightGroupId(int x) { m_group_id = x; }
21  inline int getWeightGroupId() const { return m_group_id; }
22 
23  inline void setWeight0(float x) { m_w0 = x; }
24  inline float getWeight0() const { return m_w0; }
25  inline void setWeight1(float x) { m_w1 = x; }
26  inline float getWeight1() const { return m_w1; }
27  inline void setWeight2(float x) { m_w2 = x; }
28  inline float getWeight2() const { return m_w2; }
29  inline void setWeight3(float x) { m_w3 = x; }
30  inline float getWeight3() const { return m_w3; }
31  inline void setWeight4(float x) { m_w4 = x; }
32  inline float getWeight4() const { return m_w4; }
33  inline void setWeight5(float x) { m_w5 = x; }
34  inline float getWeight5() const { return m_w5; }
35 
36 private:
37  void prepareWrite() noexcept(false) override;
38 
39  void writeDB(const EcalLogicID* ecid,
41  FEConfigOddWeightInfo* iconf) noexcept(false);
42 
44  FEConfigOddWeightInfo* iconf) noexcept(false);
45 
47  FEConfigOddWeightInfo* iconf) noexcept(false);
48 
49  // User data
51  float m_w0;
52  float m_w1;
53  float m_w2;
54  float m_w3;
55  float m_w4;
56  float m_w5;
57 };
58 
59 #endif
void writeDB(const EcalLogicID *ecid, const FEConfigOddWeightGroupDat *item, FEConfigOddWeightInfo *iconf) noexcept(false)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
void writeArrayDB(const std::map< EcalLogicID, FEConfigOddWeightGroupDat > *data, FEConfigOddWeightInfo *iconf) noexcept(false)
void fetchData(std::map< EcalLogicID, FEConfigOddWeightGroupDat > *fillMap, FEConfigOddWeightInfo *iconf) noexcept(false)
void prepareWrite() noexcept(false) override