CMS 3D CMS Logo

ODPedestalOffsetsDat.h
Go to the documentation of this file.
1 #ifndef ODPEDESTALOFFSETSDAT_H
2 #define ODPEDESTALOFFSETSDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
10 
12  public:
13  friend class EcalCondDBInterface;
15  ~ODPedestalOffsetsDat() override;
16 
17  // User data methods
18  inline std::string getTable() override { return "PEDESTAL_OFFSETS_DAT"; }
19 
20  inline void setId(int dac) { m_ID = dac; }
21  inline int getId() const { return m_ID; }
22 
23  inline void setSMId(int dac) { m_sm = dac; }
24  inline int getSMId() const { return m_sm; }
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 setCrystalId(int dac) { m_xt = dac; }
33  inline int getCrystalId() const { return m_xt; }
34 
35  inline void setLow(int dac) { m_low = dac; }
36  inline int getLow() const { return m_low; }
37 
38  inline void setMid(int dac) { m_mid = dac; }
39  inline int getMid() const { return m_mid; }
40 
41  inline void setHigh(int dac) { m_high = dac; }
42  inline int getHigh() const { return m_high; }
43 
44 
45  private:
46  void prepareWrite()
47  noexcept(false) override;
48 
49  void writeDB(const ODPedestalOffsetsDat* item, ODFEPedestalOffsetInfo* iov )
50  noexcept(false);
51 
52  void writeArrayDB(const std::vector< ODPedestalOffsetsDat >& data, ODFEPedestalOffsetInfo* iov)
53  noexcept(false);
54 
55 
56  void fetchData(std::vector< ODPedestalOffsetsDat >* fillMap, ODFEPedestalOffsetInfo* iov)
57  noexcept(false);
58 
59  // User data
60  int m_sm;
61  int m_fed;
62  int m_tt;
63  int m_xt;
64  int m_low;
65  int m_mid;
66  int m_high;
67  int m_ID;
68 
69 };
70 
71 #endif
void writeArrayDB(const std::vector< ODPedestalOffsetsDat > &data, ODFEPedestalOffsetInfo *iov) noexcept(false)
void writeDB(const ODPedestalOffsetsDat *item, ODFEPedestalOffsetInfo *iov) noexcept(false)
void fetchData(std::vector< ODPedestalOffsetsDat > *fillMap, ODFEPedestalOffsetInfo *iov) noexcept(false)
#define noexcept
std::string getTable() override
void prepareWrite() noexcept(false) override
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82