CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
FEConfigOddWeightModeDat.h
Go to the documentation of this file.
1 #ifndef ONLINEDB_ECALCONDDB_FECONFIGODDWEIGHTMODEDAT_H
2 #define ONLINEDB_ECALCONDDB_FECONFIGODDWEIGHTMODEDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
10 
12 public:
13  friend class EcalCondDBInterface; // XXX temp should not need
15  ~FEConfigOddWeightModeDat() override;
16 
17  // User data methods
18  inline std::string getTable() override { return "FE_WEIGHT2_MODE_DAT"; }
19 
20  inline void setEnableEBOddFilter(int x) { m_en_EB_flt = x; }
21  inline float getEnableEBOddFilter() const { return m_en_EB_flt; }
22  inline void setEnableEEOddFilter(int x) { m_en_EE_flt = x; }
23  inline float getEnableEEOddFilter() const { return m_en_EE_flt; }
24 
25  inline void setEnableEBOddPeakFinder(int x) { m_en_EB_pf = x; }
26  inline float getEnableEBOddPeakFinder() const { return m_en_EB_pf; }
27  inline void setEnableEEOddPeakFinder(int x) { m_en_EE_pf = x; }
28  inline float getEnableEEOddPeakFinder() const { return m_en_EE_pf; }
29 
31  inline float getDisableEBEvenPeakFinder() const { return m_dis_EB_even_pf; }
33  inline float getDisableEEEvenPeakFinder() const { return m_dis_EE_even_pf; }
34 
35  inline void setFenixEBStripOutput(int x) { m_fe_EB_strout = x; }
36  inline float getFenixEBStripOutput() const { return m_fe_EB_strout; }
37  inline void setFenixEEStripOutput(int x) { m_fe_EE_strout = x; }
38  inline float getFenixEEStripOutput() const { return m_fe_EE_strout; }
39 
40  inline void setFenixEBStripInfobit2(int x) { m_fe_EB_strib2 = x; }
41  inline float getFenixEBStripInfobit2() const { return m_fe_EB_strib2; }
42  inline void setFenixEEStripInfobit2(int x) { m_fe_EE_strib2 = x; }
43  inline float getFenixEEStripInfobit2() const { return m_fe_EE_strib2; }
44 
45  inline void setFenixEBTcpOutput(int x) { m_fe_EB_tcpout = x; }
46  inline float getFenixEBTcpOutput() const { return m_fe_EB_tcpout; }
47  inline void setFenixEBTcpInfoBit1(int x) { m_fe_EB_tcpib1 = x; }
48  inline float getFenixEBTcpInfobit1() const { return m_fe_EB_tcpib1; }
49 
50  inline void setFenixEETcpOutput(int x) { m_fe_EE_tcpout = x; }
51  inline float getFenixEETcpOutput() const { return m_fe_EE_tcpout; }
52  inline void setFenixEETcpInfoBit1(int x) { m_fe_EE_tcpib1 = x; }
53  inline float getFenixEETcpInfobit1() const { return m_fe_EE_tcpib1; }
54 
55  // redundant methods for simplification of the code
56 
57  inline void setFenixPar1(int x) { m_en_EB_flt = x; }
58  inline float getFenixPar1() const { return m_en_EB_flt; }
59  inline void setFenixPar2(int x) { m_en_EE_flt = x; }
60  inline float getFenixPar2() const { return m_en_EE_flt; }
61 
62  inline void setFenixPar3(int x) { m_en_EB_pf = x; }
63  inline float getFenixPar3() const { return m_en_EB_pf; }
64  inline void setFenixPar4(int x) { m_en_EE_pf = x; }
65  inline float getFenixPar4() const { return m_en_EE_pf; }
66 
67  inline void setFenixPar5(int x) { m_dis_EB_even_pf = x; }
68  inline float getFenixPar5() const { return m_dis_EB_even_pf; }
69 
70  inline void setFenixPar6(int x) { m_dis_EE_even_pf = x; }
71  inline float getFenixPar6() const { return m_dis_EE_even_pf; }
72 
73  inline void setFenixPar7(int x) { m_fe_EB_strout = x; }
74  inline float getFenixPar7() const { return m_fe_EB_strout; }
75  inline void setFenixPar8(int x) { m_fe_EE_strout = x; }
76  inline float getFenixPar8() const { return m_fe_EE_strout; }
77 
78  inline void setFenixPar9(int x) { m_fe_EB_strib2 = x; }
79  inline float getFenixPar9() const { return m_fe_EB_strib2; }
80  inline void setFenixPar10(int x) { m_fe_EE_strib2 = x; }
81  inline float getFenixPar10() const { return m_fe_EE_strib2; }
82 
83  inline void setFenixPar11(int x) { m_fe_EB_tcpout = x; }
84  inline float getFenixPar11() const { return m_fe_EB_tcpout; }
85  inline void setFenixPar12(int x) { m_fe_EB_tcpib1 = x; }
86  inline float getFenixPar12() const { return m_fe_EB_tcpib1; }
87 
88  inline void setFenixPar13(int x) { m_fe_EE_tcpout = x; }
89  inline float getFenixPar13() const { return m_fe_EE_tcpout; }
90  inline void setFenixPar14(int x) { m_fe_EE_tcpib1 = x; }
91  inline float getFenixPar14() const { return m_fe_EE_tcpib1; }
92 
93  // extra parameters
94 
95  inline void setFenixPar15(int x) { m_fe_par15 = x; }
96  inline float getFenixPar15() const { return m_fe_par15; }
97  inline void setFenixPar16(int x) { m_fe_par16 = x; }
98  inline float getFenixPar16() const { return m_fe_par16; }
99  inline void setFenixPar17(int x) { m_fe_par17 = x; }
100  inline float getFenixPar17() const { return m_fe_par17; }
101  inline void setFenixPar18(int x) { m_fe_par18 = x; }
102  inline float getFenixPar18() const { return m_fe_par18; }
103 
104 private:
105  void prepareWrite() noexcept(false) override;
106 
107  void writeDB(const EcalLogicID* ecid,
109  FEConfigOddWeightInfo* iconf) noexcept(false);
110 
112  FEConfigOddWeightInfo* iconf) noexcept(false);
113 
114  void fetchData(std::map<EcalLogicID, FEConfigOddWeightModeDat>* fillMap,
115  FEConfigOddWeightInfo* iconf) noexcept(false);
116 
117  // User data
118 
137 };
138 
139 #endif
void writeArrayDB(const std::map< EcalLogicID, FEConfigOddWeightModeDat > *data, FEConfigOddWeightInfo *iconf) noexcept(false)
std::string getTable() override
void fetchData(std::map< EcalLogicID, FEConfigOddWeightModeDat > *fillMap, FEConfigOddWeightInfo *iconf) noexcept(false)
#define override(base_class)
void prepareWrite() noexcept(false) override
void writeDB(const EcalLogicID *ecid, const FEConfigOddWeightModeDat *item, FEConfigOddWeightInfo *iconf) noexcept(false)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79