CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ODGolBiasCurrentDat.h
Go to the documentation of this file.
1 #ifndef ODGOLBIASCURRENTDAT_H
2 #define ODGOLBIASCURRENTDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
10 
12 public:
13  friend class EcalCondDBInterface;
15  ~ODGolBiasCurrentDat() override;
16 
17  // User data methods
18  inline std::string getTable() override { return "GOL_BIAS_CURRENT_DAT"; }
19 
20  inline void setId(int dac) { m_ID = dac; }
21  inline int getId() const { return m_ID; }
22 
23  inline void setGolId(int dac) { m_gol = dac; }
24  inline int getGolId() const { return m_gol; }
25 
26  inline void setFedId(int dac) { m_fed = dac; }
27  inline int getFedId() const { return m_fed; }
28 
29  inline void setTTId(int dac) { m_tt = dac; }
30  inline int getTTId() const { return m_tt; }
31 
32  inline void setCurrent(int dac) { m_cur = dac; }
33  inline int getCurrent() const { return m_cur; }
34 
35  inline void setPLLCurrent(int x) { m_pll_cur = x; }
36  inline int getPLLCurrent() const { return m_pll_cur; }
37 
38  inline void setStatus(int dac) { m_sta = dac; }
39  inline int getStatus() const { return m_sta; }
40 
41 private:
42  void prepareWrite() noexcept(false) override;
43 
45 
47 
48  void fetchData(std::vector<ODGolBiasCurrentDat>* fillMap, ODGolBiasCurrentInfo* iov) noexcept(false);
49 
50  // User data
51  int m_gol;
52  int m_fed;
53  int m_tt;
54  int m_cur;
55  int m_pll_cur;
56  int m_sta;
57  int m_ID;
58 };
59 
60 #endif
void fetchData(std::vector< ODGolBiasCurrentDat > *fillMap, ODGolBiasCurrentInfo *iov) noexcept(false)
void writeDB(const ODGolBiasCurrentDat *item, ODGolBiasCurrentInfo *iov) noexcept(false)
void prepareWrite() noexcept(false) override
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
std::string getTable() override
void writeArrayDB(const std::vector< ODGolBiasCurrentDat > &data, ODGolBiasCurrentInfo *iov) noexcept(false)