CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ODDelaysDat.h
Go to the documentation of this file.
1 #ifndef ODDELAYSDAT_H
2 #define ODDELAYSDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
9 
10 class ODDelaysDat : public IODConfig {
11  public:
12  friend class EcalCondDBInterface;
13  ODDelaysDat();
14  ~ODDelaysDat();
15 
16  // User data methods
17  inline std::string getTable() { return "DELAYS_DAT"; }
18 
19  inline void setId(int dac) { m_ID = dac; }
20  inline int getId() const { return m_ID; }
21 
22  inline void setSMId(int dac) { m_sm = dac; }
23  inline int getSMId() const { return m_sm; }
24 
25  inline void setFedId(int dac) { m_fed = dac; }
26  inline int getFedId() const { return m_fed; }
27 
28  inline void setTTId(int dac) { m_tt = dac; }
29  inline int getTTId() const { return m_tt; }
30 
31 
32  inline void setTimeOffset(int dac) { m_t1 = dac; }
33  inline int getTimeOffset() const { return m_t1; }
34 
35  private:
36  void prepareWrite()
37  throw(std::runtime_error);
38 
40  throw(std::runtime_error);
41 
42  void writeArrayDB(const std::vector< ODDelaysDat >& data, ODFEDelaysInfo* iov)
43  throw(std::runtime_error);
44 
45 
46  void fetchData(std::vector< ODDelaysDat >* fillMap, int id)
47  throw(std::runtime_error);
48  void fetchData(std::vector< ODDelaysDat >* fillMap, ODFEDelaysInfo* iov)
49  throw(std::runtime_error);
50 
51  // User data
52  int m_sm;
53  int m_fed;
54  int m_tt;
55  int m_t1;
56  int m_ID;
57 
58 };
59 
60 #endif
std::string getTable()
Definition: ODDelaysDat.h:17
void writeArrayDB(const std::vector< ODDelaysDat > &data, ODFEDelaysInfo *iov)
Definition: ODDelaysDat.cc:108
void setTimeOffset(int dac)
Definition: ODDelaysDat.h:32
int getId() const
Definition: ODDelaysDat.h:20
void setTTId(int dac)
Definition: ODDelaysDat.h:28
void prepareWrite()
Definition: ODDelaysDat.cc:32
int getSMId() const
Definition: ODDelaysDat.h:23
tuple iov
Definition: o2o.py:307
int getFedId() const
Definition: ODDelaysDat.h:26
void writeDB(const ODDelaysDat *item, ODFEDelaysInfo *iov)
Definition: ODDelaysDat.cc:48
int getTTId() const
Definition: ODDelaysDat.h:29
string const
Definition: compareJSON.py:14
void setId(int dac)
Definition: ODDelaysDat.h:19
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void setSMId(int dac)
Definition: ODDelaysDat.h:22
int getTimeOffset() const
Definition: ODDelaysDat.h:33
void fetchData(std::vector< ODDelaysDat > *fillMap, int id)
Definition: ODDelaysDat.cc:73
void setFedId(int dac)
Definition: ODDelaysDat.h:25