CMS 3D CMS Logo

FEConfigCokeDat.h
Go to the documentation of this file.
1 #ifndef ONLINEDB_ECALCONDDB_FECONFIGCOKEDAT_H
2 #define ONLINEDB_ECALCONDDB_FECONFIGCOKEDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
10 
11 class FEConfigCokeDat : public IDataItem {
12 public:
13  friend class EcalCondDBInterface; // XXX temp should not need
15  ~FEConfigCokeDat() override;
16 
17  // User data methods
18  inline std::string getTable() override { return "FE_CONFIG_COKE_DAT"; }
19 
20  inline void setThreshold(int x) { m_thre = x; }
21  inline int getThreshold() const { return m_thre; }
22  inline void setSuccEventLimit(int x) { m_succ_ev_lim = x; }
23  inline int getSuccEventLimit() const { return m_succ_ev_lim; }
24  inline void setCumulEventLimit(int x) { m_cum_ev_lim = x; }
25  inline int getCumulEventLimit() const { return m_cum_ev_lim; }
26  inline void setSuccDetectEnable(int x) { m_succ_det_en = x; }
27  inline int getSuccDetectEnable() const { return m_succ_det_en; }
28  inline void setCumDetectEnable(int x) { m_cum_det_en = x; }
29  inline int getCumDetectEnable() const { return m_cum_det_en; }
30  inline void setThreshold1(int x) { m_thre1 = x; }
31  inline int getThreshold1() const { return m_thre1; }
32  inline void setSucc1EventLimit(int x) { m_succ1_ev_lim = x; }
33  inline int getSucc1EventLimit() const { return m_succ1_ev_lim; }
34  inline void setCumul1EventLimit(int x) { m_cum1_ev_lim = x; }
35  inline int getCumul1EventLimit() const { return m_cum1_ev_lim; }
36  inline void setCombiMode(int x) { m_combi_mode = x; }
37  inline int getCombiMode() const { return m_combi_mode; }
38  inline void setOccMode(int x) { m_occ_mode = x; }
39  inline int getOccMode() const { return m_occ_mode; }
40  inline void setCombSuccDetect(int x) { m_comb_succ_det = x; }
41  inline int getCombSuccDetect() const { return m_comb_succ_det; }
42  inline void setCombCumulDetect(int x) { m_comb_cumul_det = x; }
43  inline int getCombCumulDetect() const { return m_comb_cumul_det; }
44  inline void setOccDetect(int x) { m_occ_det = x; }
45  inline int getOccDetect() const { return m_occ_det; }
46  inline void setCumul1Detect(int x) { m_cum1_det = x; }
47  inline int getCumul1Detect() const { return m_cum1_det; }
48  inline void setThreshold2(int x) { m_thre2 = x; }
49  inline int getThreshold2() const { return m_thre2; }
50  inline void setOccLimit(int x) { m_occ_lim = x; }
51  inline int getOccLimit() const { return m_occ_lim; }
52  inline void setThreshold3(int x) { m_thre3 = x; }
53  inline int getThreshold3() const { return m_thre3; }
54  inline void setCumul2Limit(int x) { m_cum2_lim = x; }
55  inline int getCumul2Limit() const { return m_cum2_lim; }
56  inline void setStopBufW(int x) { m_stop_bufw = x; }
57  inline int getStopBufW() const { return m_stop_bufw; }
58  // this simplifies the code
59  inline void setPar1(int x) { m_thre = x; }
60  inline int getPar1() const { return m_thre; }
61  inline void setPar2(int x) { m_succ_ev_lim = x; }
62  inline int getPar2() const { return m_succ_ev_lim; }
63  inline void setPar3(int x) { m_cum_ev_lim = x; }
64  inline int getPar3() const { return m_cum_ev_lim; }
65  inline void setPar4(int x) { m_succ_det_en = x; }
66  inline int getPar4() const { return m_succ_det_en; }
67  inline void setPar5(int x) { m_cum_det_en = x; }
68  inline int getPar5() const { return m_cum_det_en; }
69  inline void setPar6(int x) { m_thre1 = x; }
70  inline int getPar6() const { return m_thre1; }
71  inline void setPar7(int x) { m_succ1_ev_lim = x; }
72  inline int getPar7() const { return m_succ1_ev_lim; }
73  inline void setPar8(int x) { m_cum1_ev_lim = x; }
74  inline int getPar8() const { return m_cum1_ev_lim; }
75  inline void setPar9(int x) { m_combi_mode = x; }
76  inline int getPar9() const { return m_combi_mode; }
77  inline void setPar10(int x) { m_occ_mode = x; }
78  inline int getPar10() const { return m_occ_mode; }
79  inline void setPar11(int x) { m_comb_succ_det = x; }
80  inline int getPar11() const { return m_comb_succ_det; }
81  inline void setPar12(int x) { m_comb_cumul_det = x; }
82  inline int getPar12() const { return m_comb_cumul_det; }
83  inline void setPar13(int x) { m_occ_det = x; }
84  inline int getPar13() const { return m_occ_det; }
85  inline void setPar14(int x) { m_cum1_det = x; }
86  inline int getPar14() const { return m_cum1_det; }
87  inline void setPar15(int x) { m_thre2 = x; }
88  inline int getPar15() const { return m_thre2; }
89  inline void setPar16(int x) { m_occ_lim = x; }
90  inline int getPar16() const { return m_occ_lim; }
91  inline void setPar17(int x) { m_thre3 = x; }
92  inline int getPar17() const { return m_thre3; }
93  inline void setPar18(int x) { m_cum2_lim = x; }
94  inline int getPar18() const { return m_cum2_lim; }
95  inline void setPar19(int x) { m_stop_bufw = x; }
96  inline int getPar19() const { return m_stop_bufw; }
97 
98  void clear() {
99  m_thre = 0;
100  m_succ_ev_lim = 0;
101  m_cum_ev_lim = 0;
102  m_succ_det_en = 0;
103  m_cum_det_en = 0;
104  m_thre1 = 0;
105  m_succ1_ev_lim = 0;
106  m_cum1_ev_lim = 0;
107  m_combi_mode = 0;
108  m_occ_mode = 0;
109  m_comb_succ_det = 0;
110  m_comb_cumul_det = 0;
111  m_occ_det = 0;
112  m_cum1_det = 0;
113  m_thre2 = 0;
114  m_occ_lim = 0;
115  m_thre3 = 0;
116  m_cum2_lim = 0;
117  m_stop_bufw = 0;
118  }
119 
120 private:
121  void prepareWrite() noexcept(false) override;
122  void writeDB(const EcalLogicID* ecid, const FEConfigCokeDat* item, FEConfigCokeInfo* iconf) noexcept(false);
124  void fetchData(std::map<EcalLogicID, FEConfigCokeDat>* fillMap, FEConfigCokeInfo* iconf) noexcept(false);
125  // User data
126  int m_thre;
131  int m_thre1;
140  int m_thre2;
142  int m_thre3;
145 };
146 
147 #endif
int getCombiMode() const
void setPar7(int x)
void setThreshold2(int x)
int getPar6() const
int getPar3() const
void setCombSuccDetect(int x)
int getCombSuccDetect() const
int getPar12() const
int getOccDetect() const
void setThreshold1(int x)
int getOccMode() const
void setCumul1EventLimit(int x)
int getPar13() const
int getPar9() const
void setPar17(int x)
int getPar19() const
void setPar15(int x)
void writeArrayDB(const std::map< EcalLogicID, FEConfigCokeDat > *data, FEConfigCokeInfo *iconf) noexcept(false)
void setStopBufW(int x)
int getPar15() const
~FEConfigCokeDat() override
void setPar12(int x)
void setThreshold3(int x)
void setPar19(int x)
int getSuccDetectEnable() const
void setSuccEventLimit(int x)
void setCumDetectEnable(int x)
void setPar14(int x)
void setPar4(int x)
void setOccLimit(int x)
void setPar18(int x)
int getPar5() const
int getSuccEventLimit() const
int getCumDetectEnable() const
std::string getTable() override
int getCumul1Detect() const
int getPar2() const
void setPar9(int x)
int getSucc1EventLimit() const
int getOccLimit() const
void setPar11(int x)
int getCumul2Limit() const
int getPar8() const
int getCumul1EventLimit() const
void setPar16(int x)
void setPar8(int x)
int getStopBufW() const
int getPar18() const
void setPar5(int x)
void setOccMode(int x)
int getPar7() const
int getPar4() const
void prepareWrite() noexcept(false) override
int getPar14() const
void setCumul2Limit(int x)
void setPar10(int x)
int getPar17() const
void writeDB(const EcalLogicID *ecid, const FEConfigCokeDat *item, FEConfigCokeInfo *iconf) noexcept(false)
void setSuccDetectEnable(int x)
void setPar13(int x)
int getCombCumulDetect() const
void setCombiMode(int x)
int getThreshold2() const
void setPar6(int x)
void setPar1(int x)
int getThreshold3() const
int getCumulEventLimit() const
void setCumul1Detect(int x)
void setThreshold(int x)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
int getPar16() const
void setCombCumulDetect(int x)
void setPar3(int x)
int getThreshold1() const
void setOccDetect(int x)
int getThreshold() const
void fetchData(std::map< EcalLogicID, FEConfigCokeDat > *fillMap, FEConfigCokeInfo *iconf) noexcept(false)
int getPar11() const
int getPar10() const
void setCumulEventLimit(int x)
int getPar1() const
void setSucc1EventLimit(int x)
void setPar2(int x)