CMS 3D CMS Logo

ODFEDAQConfig.h
Go to the documentation of this file.
1 #ifndef ODFEDAQCONFIG_H
2 #define ODFEDAQCONFIG_H
3 
4 #include <map>
5 #include <string>
6 
8 
9 class ODFEDAQConfig : public IODConfig {
10 public:
11  friend class EcalCondDBInterface;
12  ODFEDAQConfig();
13  ~ODFEDAQConfig() override;
14 
15  // User data methods
16  inline std::string getTable() override { return "FE_DAQ_CONFIG"; }
17 
18  inline void setId(int id) { m_ID = id; }
19  inline int getId() const { return m_ID; }
20 
21  // the tag is already in IODConfig
22 
23  inline void setVersion(int id) { m_version = id; }
24  inline int getVersion() const { return m_version; }
25 
26  inline void setPedestalId(int x) { m_ped = x; }
27  inline int getPedestalId() const { return m_ped; }
28  inline void setDelayId(int x) { m_del = x; }
29  inline int getDelayId() const { return m_del; }
30  inline void setWeightId(int x) { m_wei = x; }
31  inline int getWeightId() const { return m_wei; }
32 
33  inline void setBadXtId(int x) { m_bxt = x; }
34  inline int getBadXtId() const { return m_bxt; }
35  inline void setBadTTId(int x) { m_btt = x; }
36  inline int getBadTTId() const { return m_btt; }
37  inline void setTriggerBadXtId(int x) { m_tbxt = x; }
38  inline int getTriggerBadXtId() const { return m_tbxt; }
39  inline void setTriggerBadTTId(int x) { m_tbtt = x; }
40  inline int getTriggerBadTTId() const { return m_tbtt; }
41 
42  inline void setComment(std::string x) { m_com = x; }
43  inline std::string getComment() const { return m_com; }
44 
45  int fetchNextId() noexcept(false);
46  void setParameters(const std::map<std::string, std::string>& my_keys_map);
47 
48 private:
49  void prepareWrite() noexcept(false) override;
50 
51  void writeDB() noexcept(false);
52 
53  void clear();
54 
55  void fetchData(ODFEDAQConfig* result) noexcept(false);
56 
57  int fetchID() noexcept(false);
58 
59  // User data
60  int m_ID;
61  int m_ped;
62  int m_del;
63  int m_wei;
64 
65  int m_bxt;
66  int m_btt;
67  int m_tbxt;
68  int m_tbtt;
69  int m_version;
70  std::string m_com;
71 };
72 
73 #endif
int getId() const
Definition: ODFEDAQConfig.h:19
int fetchNextId() noexcept(false)
void setId(int id)
Definition: ODFEDAQConfig.h:18
int getTriggerBadTTId() const
Definition: ODFEDAQConfig.h:40
void setBadXtId(int x)
Definition: ODFEDAQConfig.h:33
std::string getTable() override
Definition: ODFEDAQConfig.h:16
int getTriggerBadXtId() const
Definition: ODFEDAQConfig.h:38
int getWeightId() const
Definition: ODFEDAQConfig.h:31
void setDelayId(int x)
Definition: ODFEDAQConfig.h:28
void setParameters(const std::map< std::string, std::string > &my_keys_map)
void setTriggerBadTTId(int x)
Definition: ODFEDAQConfig.h:39
void prepareWrite() noexcept(false) override
~ODFEDAQConfig() override
int fetchID() noexcept(false)
void setVersion(int id)
Definition: ODFEDAQConfig.h:23
void setPedestalId(int x)
Definition: ODFEDAQConfig.h:26
int getBadTTId() const
Definition: ODFEDAQConfig.h:36
int getBadXtId() const
Definition: ODFEDAQConfig.h:34
int getVersion() const
Definition: ODFEDAQConfig.h:24
void setWeightId(int x)
Definition: ODFEDAQConfig.h:30
void setBadTTId(int x)
Definition: ODFEDAQConfig.h:35
int getPedestalId() const
Definition: ODFEDAQConfig.h:27
void fetchData(ODFEDAQConfig *result) noexcept(false)
void setComment(std::string x)
Definition: ODFEDAQConfig.h:42
int getDelayId() const
Definition: ODFEDAQConfig.h:29
void writeDB() noexcept(false)
std::string getComment() const
Definition: ODFEDAQConfig.h:43
void setTriggerBadXtId(int x)
Definition: ODFEDAQConfig.h:37
std::string m_com
Definition: ODFEDAQConfig.h:70