CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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;
16 
17  // User data methods
18  inline std::string getTable() { 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  throw(std::runtime_error);
48 
50  throw(std::runtime_error);
51 
53  throw(std::runtime_error);
54 
55 
56  void fetchData(std::vector< ODPedestalOffsetsDat >* fillMap, ODFEPedestalOffsetInfo* iov)
57  throw(std::runtime_error);
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
tuple iov
Definition: o2o.py:307
void writeArrayDB(const std::vector< ODPedestalOffsetsDat > &data, ODFEPedestalOffsetInfo *iov)
void fetchData(std::vector< ODPedestalOffsetsDat > *fillMap, ODFEPedestalOffsetInfo *iov)
string const
Definition: compareJSON.py:14
void writeDB(const ODPedestalOffsetsDat *item, ODFEPedestalOffsetInfo *iov)