CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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() override;
15 
16  // User data methods
17  inline std::string getTable() override { 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  inline void setTimeOffset(int dac) { m_t1 = dac; }
32  inline int getTimeOffset() const { return m_t1; }
33 
34 private:
35  void prepareWrite() noexcept(false) override;
36 
37  void writeDB(const ODDelaysDat* item, ODFEDelaysInfo* iov) noexcept(false);
38 
39  void writeArrayDB(const std::vector<ODDelaysDat>& data, ODFEDelaysInfo* iov) noexcept(false);
40 
41  void fetchData(std::vector<ODDelaysDat>* fillMap, int id) noexcept(false);
42  void fetchData(std::vector<ODDelaysDat>* fillMap, ODFEDelaysInfo* iov) noexcept(false);
43 
44  // User data
45  int m_sm;
46  int m_fed;
47  int m_tt;
48  int m_t1;
49  int m_ID;
50 };
51 
52 #endif
void writeDB(const ODDelaysDat *item, ODFEDelaysInfo *iov) noexcept(false)
Definition: ODDelaysDat.cc:37
void setTimeOffset(int dac)
Definition: ODDelaysDat.h:31
int getId() const
Definition: ODDelaysDat.h:20
void setTTId(int dac)
Definition: ODDelaysDat.h:28
void fetchData(std::vector< ODDelaysDat > *fillMap, int id) noexcept(false)
Definition: ODDelaysDat.cc:59
std::string getTable() override
Definition: ODDelaysDat.h:17
int getSMId() const
Definition: ODDelaysDat.h:23
~ODDelaysDat() override
Definition: ODDelaysDat.cc:22
#define override(base_class)
int getFedId() const
Definition: ODDelaysDat.h:26
void prepareWrite() noexcept(false) override
Definition: ODDelaysDat.cc:24
int getTTId() const
Definition: ODDelaysDat.h:29
void writeArrayDB(const std::vector< ODDelaysDat > &data, ODFEDelaysInfo *iov) noexcept(false)
Definition: ODDelaysDat.cc:91
void setId(int dac)
Definition: ODDelaysDat.h:19
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
void setSMId(int dac)
Definition: ODDelaysDat.h:22
int getTimeOffset() const
Definition: ODDelaysDat.h:32
void setFedId(int dac)
Definition: ODDelaysDat.h:25