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
FEConfigCokeDat::setPar4
void setPar4(int x)
Definition: FEConfigCokeDat.h:65
FEConfigCokeDat::setCumul1EventLimit
void setCumul1EventLimit(int x)
Definition: FEConfigCokeDat.h:34
FEConfigCokeDat::getPar1
int getPar1() const
Definition: FEConfigCokeDat.h:60
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
FEConfigCokeDat::getPar16
int getPar16() const
Definition: FEConfigCokeDat.h:90
IDataItem.h
FEConfigCokeDat::setSuccDetectEnable
void setSuccDetectEnable(int x)
Definition: FEConfigCokeDat.h:26
FEConfigCokeDat::m_combi_mode
int m_combi_mode
Definition: FEConfigCokeDat.h:134
FEConfigCokeDat::getOccLimit
int getOccLimit() const
Definition: FEConfigCokeDat.h:51
FEConfigCokeDat::setPar5
void setPar5(int x)
Definition: FEConfigCokeDat.h:67
funct::false
false
Definition: Factorize.h:29
FEConfigCokeDat::getPar10
int getPar10() const
Definition: FEConfigCokeDat.h:78
FEConfigCokeDat::~FEConfigCokeDat
~FEConfigCokeDat() override
Definition: FEConfigCokeDat.cc:20
FEConfigCokeDat::m_occ_det
int m_occ_det
Definition: FEConfigCokeDat.h:138
FEConfigCokeDat::getPar12
int getPar12() const
Definition: FEConfigCokeDat.h:82
FEConfigCokeDat::setThreshold
void setThreshold(int x)
Definition: FEConfigCokeDat.h:20
FEConfigCokeDat::setCumul1Detect
void setCumul1Detect(int x)
Definition: FEConfigCokeDat.h:46
FEConfigCokeDat::setCumulEventLimit
void setCumulEventLimit(int x)
Definition: FEConfigCokeDat.h:24
FEConfigCokeDat::getPar13
int getPar13() const
Definition: FEConfigCokeDat.h:84
FEConfigCokeDat::getPar15
int getPar15() const
Definition: FEConfigCokeDat.h:88
FEConfigCokeDat::m_cum_ev_lim
int m_cum_ev_lim
Definition: FEConfigCokeDat.h:128
FEConfigCokeDat::getThreshold2
int getThreshold2() const
Definition: FEConfigCokeDat.h:49
FEConfigCokeDat::setPar16
void setPar16(int x)
Definition: FEConfigCokeDat.h:89
FEConfigCokeDat::setThreshold1
void setThreshold1(int x)
Definition: FEConfigCokeDat.h:30
FEConfigCokeDat::getCombSuccDetect
int getCombSuccDetect() const
Definition: FEConfigCokeDat.h:41
FEConfigCokeDat::setOccDetect
void setOccDetect(int x)
Definition: FEConfigCokeDat.h:44
FEConfigCokeDat::getPar4
int getPar4() const
Definition: FEConfigCokeDat.h:66
FEConfigCokeDat::getSuccDetectEnable
int getSuccDetectEnable() const
Definition: FEConfigCokeDat.h:27
FEConfigCokeInfo
Definition: FEConfigCokeInfo.h:11
DDAxes::x
FEConfigCokeDat::setPar2
void setPar2(int x)
Definition: FEConfigCokeDat.h:61
FEConfigCokeDat::setCombiMode
void setCombiMode(int x)
Definition: FEConfigCokeDat.h:36
FEConfigCokeDat::getCumDetectEnable
int getCumDetectEnable() const
Definition: FEConfigCokeDat.h:29
watchdog.const
const
Definition: watchdog.py:83
FEConfigCokeDat::getOccMode
int getOccMode() const
Definition: FEConfigCokeDat.h:39
FEConfigCokeDat::m_stop_bufw
int m_stop_bufw
Definition: FEConfigCokeDat.h:144
FEConfigCokeDat::m_succ_det_en
int m_succ_det_en
Definition: FEConfigCokeDat.h:129
FEConfigCokeDat::getCumul2Limit
int getCumul2Limit() const
Definition: FEConfigCokeDat.h:55
FEConfigCokeDat::setPar14
void setPar14(int x)
Definition: FEConfigCokeDat.h:85
FEConfigCokeDat::m_cum_det_en
int m_cum_det_en
Definition: FEConfigCokeDat.h:130
FEConfigCokeDat::setOccLimit
void setOccLimit(int x)
Definition: FEConfigCokeDat.h:50
FEConfigCokeDat::setPar17
void setPar17(int x)
Definition: FEConfigCokeDat.h:91
FEConfigCokeDat::m_cum1_det
int m_cum1_det
Definition: FEConfigCokeDat.h:139
FEConfigCokeDat::setSucc1EventLimit
void setSucc1EventLimit(int x)
Definition: FEConfigCokeDat.h:32
FEConfigCokeDat::getPar14
int getPar14() const
Definition: FEConfigCokeDat.h:86
IDataItem
Definition: IDataItem.h:16
FEConfigCokeDat::getCumulEventLimit
int getCumulEventLimit() const
Definition: FEConfigCokeDat.h:25
FEConfigCokeDat::getCombiMode
int getCombiMode() const
Definition: FEConfigCokeDat.h:37
FEConfigCokeDat::m_succ1_ev_lim
int m_succ1_ev_lim
Definition: FEConfigCokeDat.h:132
FEConfigCokeDat::getThreshold
int getThreshold() const
Definition: FEConfigCokeDat.h:21
FEConfigCokeDat::m_comb_succ_det
int m_comb_succ_det
Definition: FEConfigCokeDat.h:136
EcalLogicID
Definition: EcalLogicID.h:7
FEConfigCokeDat::setCombCumulDetect
void setCombCumulDetect(int x)
Definition: FEConfigCokeDat.h:42
FEConfigCokeDat::setPar19
void setPar19(int x)
Definition: FEConfigCokeDat.h:95
FEConfigCokeDat::m_thre
int m_thre
Definition: FEConfigCokeDat.h:126
FEConfigCokeDat::getTable
std::string getTable() override
Definition: FEConfigCokeDat.h:18
FEConfigCokeDat::setPar13
void setPar13(int x)
Definition: FEConfigCokeDat.h:83
FEConfigCokeDat::FEConfigCokeDat
FEConfigCokeDat()
Definition: FEConfigCokeDat.cc:11
FEConfigCokeDat::writeArrayDB
void writeArrayDB(const std::map< EcalLogicID, FEConfigCokeDat > *data, FEConfigCokeInfo *iconf) noexcept(false)
Definition: FEConfigCokeDat.cc:149
FEConfigCokeDat::getCombCumulDetect
int getCombCumulDetect() const
Definition: FEConfigCokeDat.h:43
FEConfigCokeDat::getSuccEventLimit
int getSuccEventLimit() const
Definition: FEConfigCokeDat.h:23
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FEConfigCokeDat::getThreshold1
int getThreshold1() const
Definition: FEConfigCokeDat.h:31
FEConfigCokeDat::setPar10
void setPar10(int x)
Definition: FEConfigCokeDat.h:77
FEConfigCokeDat::m_cum2_lim
int m_cum2_lim
Definition: FEConfigCokeDat.h:143
FEConfigCokeDat::m_comb_cumul_det
int m_comb_cumul_det
Definition: FEConfigCokeDat.h:137
FEConfigCokeDat::m_thre2
int m_thre2
Definition: FEConfigCokeDat.h:140
FEConfigCokeDat::setCombSuccDetect
void setCombSuccDetect(int x)
Definition: FEConfigCokeDat.h:40
FEConfigCokeDat::setCumul2Limit
void setCumul2Limit(int x)
Definition: FEConfigCokeDat.h:54
FEConfigCokeDat::setPar8
void setPar8(int x)
Definition: FEConfigCokeDat.h:73
FEConfigCokeInfo.h
FEConfigCokeDat::getPar9
int getPar9() const
Definition: FEConfigCokeDat.h:76
FEConfigCokeDat::m_thre1
int m_thre1
Definition: FEConfigCokeDat.h:131
FEConfigCokeDat::getPar5
int getPar5() const
Definition: FEConfigCokeDat.h:68
FEConfigCokeDat::setPar3
void setPar3(int x)
Definition: FEConfigCokeDat.h:63
FEConfigCokeDat::setCumDetectEnable
void setCumDetectEnable(int x)
Definition: FEConfigCokeDat.h:28
FEConfigCokeDat::setPar15
void setPar15(int x)
Definition: FEConfigCokeDat.h:87
FEConfigCokeDat::setPar18
void setPar18(int x)
Definition: FEConfigCokeDat.h:93
FEConfigCokeDat::getPar11
int getPar11() const
Definition: FEConfigCokeDat.h:80
FEConfigCokeDat::setPar6
void setPar6(int x)
Definition: FEConfigCokeDat.h:69
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
FEConfigCokeDat::getPar2
int getPar2() const
Definition: FEConfigCokeDat.h:62
FEConfigCokeDat::m_occ_mode
int m_occ_mode
Definition: FEConfigCokeDat.h:135
FEConfigCokeDat::setPar12
void setPar12(int x)
Definition: FEConfigCokeDat.h:81
FEConfigCokeDat::clear
void clear()
Definition: FEConfigCokeDat.h:98
FEConfigCokeDat::fetchData
void fetchData(std::map< EcalLogicID, FEConfigCokeDat > *fillMap, FEConfigCokeInfo *iconf) noexcept(false)
Definition: FEConfigCokeDat.cc:85
FEConfigCokeDat::setThreshold2
void setThreshold2(int x)
Definition: FEConfigCokeDat.h:48
FEConfigCokeDat::getPar6
int getPar6() const
Definition: FEConfigCokeDat.h:70
FEConfigCokeDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: FEConfigCokeDat.cc:22
EcalLogicID.h
FEConfigCokeDat::getCumul1EventLimit
int getCumul1EventLimit() const
Definition: FEConfigCokeDat.h:35
std
Definition: JetResolutionObject.h:76
FEConfigCokeDat::getOccDetect
int getOccDetect() const
Definition: FEConfigCokeDat.h:45
FEConfigCokeDat::setStopBufW
void setStopBufW(int x)
Definition: FEConfigCokeDat.h:56
FEConfigCokeDat::m_succ_ev_lim
int m_succ_ev_lim
Definition: FEConfigCokeDat.h:127
FEConfigCokeDat::getPar19
int getPar19() const
Definition: FEConfigCokeDat.h:96
FEConfigCokeDat::getPar18
int getPar18() const
Definition: FEConfigCokeDat.h:94
FEConfigCokeDat::m_occ_lim
int m_occ_lim
Definition: FEConfigCokeDat.h:141
FEConfigCokeDat::getPar7
int getPar7() const
Definition: FEConfigCokeDat.h:72
FEConfigCokeDat::setOccMode
void setOccMode(int x)
Definition: FEConfigCokeDat.h:38
FEConfigCokeDat::writeDB
void writeDB(const EcalLogicID *ecid, const FEConfigCokeDat *item, FEConfigCokeInfo *iconf) noexcept(false)
Definition: FEConfigCokeDat.cc:40
FEConfigCokeDat::getThreshold3
int getThreshold3() const
Definition: FEConfigCokeDat.h:53
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
FEConfigCokeDat::setPar11
void setPar11(int x)
Definition: FEConfigCokeDat.h:79
FEConfigCokeDat::m_thre3
int m_thre3
Definition: FEConfigCokeDat.h:142
FEConfigCokeDat::setThreshold3
void setThreshold3(int x)
Definition: FEConfigCokeDat.h:52
genParticles_cff.map
map
Definition: genParticles_cff.py:11
FEConfigCokeDat
Definition: FEConfigCokeDat.h:11
FEConfigCokeDat::getPar3
int getPar3() const
Definition: FEConfigCokeDat.h:64
FEConfigCokeDat::getSucc1EventLimit
int getSucc1EventLimit() const
Definition: FEConfigCokeDat.h:33
FEConfigCokeDat::setPar7
void setPar7(int x)
Definition: FEConfigCokeDat.h:71
FEConfigCokeDat::setSuccEventLimit
void setSuccEventLimit(int x)
Definition: FEConfigCokeDat.h:22
FEConfigCokeDat::setPar1
void setPar1(int x)
Definition: FEConfigCokeDat.h:59
FEConfigCokeDat::setPar9
void setPar9(int x)
Definition: FEConfigCokeDat.h:75
FEConfigCokeDat::getPar17
int getPar17() const
Definition: FEConfigCokeDat.h:92
FEConfigCokeDat::m_cum1_ev_lim
int m_cum1_ev_lim
Definition: FEConfigCokeDat.h:133
FEConfigCokeDat::getStopBufW
int getStopBufW() const
Definition: FEConfigCokeDat.h:57
FEConfigCokeDat::getPar8
int getPar8() const
Definition: FEConfigCokeDat.h:74
FEConfigCokeDat::getCumul1Detect
int getCumul1Detect() const
Definition: FEConfigCokeDat.h:47