CMS 3D CMS Logo

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
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
IDataItem.h
funct::false
false
Definition: Factorize.h:29
ODGolBiasCurrentDat::getPLLCurrent
int getPLLCurrent() const
Definition: ODGolBiasCurrentDat.h:36
ODGolBiasCurrentDat::getTable
std::string getTable() override
Definition: ODGolBiasCurrentDat.h:18
ODGolBiasCurrentDat::setId
void setId(int dac)
Definition: ODGolBiasCurrentDat.h:20
ODGolBiasCurrentDat::setGolId
void setGolId(int dac)
Definition: ODGolBiasCurrentDat.h:23
ODGolBiasCurrentDat::getId
int getId() const
Definition: ODGolBiasCurrentDat.h:21
ODGolBiasCurrentDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: ODGolBiasCurrentDat.cc:26
ODGolBiasCurrentDat::~ODGolBiasCurrentDat
~ODGolBiasCurrentDat() override
Definition: ODGolBiasCurrentDat.cc:24
DDAxes::x
ODGolBiasCurrentDat::getTTId
int getTTId() const
Definition: ODGolBiasCurrentDat.h:30
watchdog.const
const
Definition: watchdog.py:83
ODGolBiasCurrentDat::getStatus
int getStatus() const
Definition: ODGolBiasCurrentDat.h:39
ODGolBiasCurrentDat::m_gol
int m_gol
Definition: ODGolBiasCurrentDat.h:51
ODGolBiasCurrentDat::getGolId
int getGolId() const
Definition: ODGolBiasCurrentDat.h:24
ODGolBiasCurrentDat::m_sta
int m_sta
Definition: ODGolBiasCurrentDat.h:56
ODGolBiasCurrentDat
Definition: ODGolBiasCurrentDat.h:11
ODGolBiasCurrentDat::getCurrent
int getCurrent() const
Definition: ODGolBiasCurrentDat.h:33
ODGolBiasCurrentDat::fetchData
void fetchData(std::vector< ODGolBiasCurrentDat > *fillMap, ODGolBiasCurrentInfo *iov) noexcept(false)
Definition: ODGolBiasCurrentDat.cc:57
ODGolBiasCurrentDat::m_tt
int m_tt
Definition: ODGolBiasCurrentDat.h:53
ODGolBiasCurrentDat::m_cur
int m_cur
Definition: ODGolBiasCurrentDat.h:54
ODGolBiasCurrentDat::m_fed
int m_fed
Definition: ODGolBiasCurrentDat.h:52
IODConfig
Definition: IODConfig.h:18
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalLogicID.h
ODGolBiasCurrentDat::setCurrent
void setCurrent(int dac)
Definition: ODGolBiasCurrentDat.h:32
std
Definition: JetResolutionObject.h:76
ODGolBiasCurrentDat::writeArrayDB
void writeArrayDB(const std::vector< ODGolBiasCurrentDat > &data, ODGolBiasCurrentInfo *iov) noexcept(false)
Definition: ODGolBiasCurrentDat.cc:93
ODGolBiasCurrentInfo.h
ODGolBiasCurrentDat::getFedId
int getFedId() const
Definition: ODGolBiasCurrentDat.h:27
ODGolBiasCurrentDat::setPLLCurrent
void setPLLCurrent(int x)
Definition: ODGolBiasCurrentDat.h:35
ODGolBiasCurrentInfo
Definition: ODGolBiasCurrentInfo.h:9
ODGolBiasCurrentDat::ODGolBiasCurrentDat
ODGolBiasCurrentDat()
Definition: ODGolBiasCurrentDat.cc:10
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
ODGolBiasCurrentDat::m_ID
int m_ID
Definition: ODGolBiasCurrentDat.h:57
ODGolBiasCurrentDat::setTTId
void setTTId(int dac)
Definition: ODGolBiasCurrentDat.h:29
ODGolBiasCurrentDat::setFedId
void setFedId(int dac)
Definition: ODGolBiasCurrentDat.h:26
ODGolBiasCurrentDat::writeDB
void writeDB(const ODGolBiasCurrentDat *item, ODGolBiasCurrentInfo *iov) noexcept(false)
Definition: ODGolBiasCurrentDat.cc:39
ODGolBiasCurrentDat::setStatus
void setStatus(int dac)
Definition: ODGolBiasCurrentDat.h:38
ODGolBiasCurrentDat::m_pll_cur
int m_pll_cur
Definition: ODGolBiasCurrentDat.h:55