CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 private:
45  void prepareWrite() noexcept(false) override;
46 
48 
49  void writeArrayDB(const std::vector<ODPedestalOffsetsDat>& data, ODFEPedestalOffsetInfo* iov) noexcept(false);
50 
51  void fetchData(std::vector<ODPedestalOffsetsDat>* fillMap, ODFEPedestalOffsetInfo* iov) noexcept(false);
52 
53  // User data
54  int m_sm;
55  int m_fed;
56  int m_tt;
57  int m_xt;
58  int m_low;
59  int m_mid;
60  int m_high;
61  int m_ID;
62 };
63 
64 #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)
std::string getTable() override
void prepareWrite() noexcept(false) override
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79