CMS 3D CMS Logo

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 
32  inline void setTimeOffset(int dac) { m_t1 = dac; }
33  inline int getTimeOffset() const { return m_t1; }
34 
35  private:
36  void prepareWrite() noexcept(false) override;
37 
38  void writeDB(const ODDelaysDat* item, ODFEDelaysInfo* iov ) noexcept(false);
39 
40  void writeArrayDB(const std::vector< ODDelaysDat >& data, ODFEDelaysInfo* iov) noexcept(false);
41 
42 
43  void fetchData(std::vector< ODDelaysDat >* fillMap, int id) noexcept(false);
44  void fetchData(std::vector< ODDelaysDat >* fillMap, ODFEDelaysInfo* iov) noexcept(false);
45 
46  // User data
47  int m_sm;
48  int m_fed;
49  int m_tt;
50  int m_t1;
51  int m_ID;
52 
53 };
54 
55 #endif
void writeDB(const ODDelaysDat *item, ODFEDelaysInfo *iov) noexcept(false)
Definition: ODDelaysDat.cc:48
void setTimeOffset(int dac)
Definition: ODDelaysDat.h:32
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:73
std::string getTable() override
Definition: ODDelaysDat.h:17
int getSMId() const
Definition: ODDelaysDat.h:23
~ODDelaysDat() override
Definition: ODDelaysDat.cc:26
int getFedId() const
Definition: ODDelaysDat.h:26
void prepareWrite() noexcept(false) override
Definition: ODDelaysDat.cc:32
#define noexcept
int getTTId() const
Definition: ODDelaysDat.h:29
void writeArrayDB(const std::vector< ODDelaysDat > &data, ODFEDelaysInfo *iov) noexcept(false)
Definition: ODDelaysDat.cc:108
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 setFedId(int dac)
Definition: ODDelaysDat.h:25