CMS 3D CMS Logo

ODLTSConfig.h
Go to the documentation of this file.
1 #ifndef ODLTSCONFIG_H
2 #define ODLTSCONFIG_H
3 
4 #include <map>
5 #include <stdexcept>
6 
8 
9 class ODLTSConfig : public IODConfig {
10  public:
11  friend class EcalCondDBInterface;
12  ODLTSConfig();
13  ~ODLTSConfig() override;
14 
15  // User data methods
16  inline std::string getTable() override { return "ECAL_LTS_CONFIGURATION"; }
17 
18  inline void setId(int id) { m_ID = id; }
19  inline int getId() const { return m_ID; }
20 
21  inline void setTriggerType(std::string x) { m_trg_type = x; }
22  inline std::string getTriggerType() const { return m_trg_type; }
23 
24  inline void setNumberOfEvents(int x) { m_num = x; }
25  inline int getNumberOfEvents() const { return m_num; }
26 
27  inline void setRate(int x) { m_rate = x; }
28  inline int getRate() const { return m_rate; }
29 
30  inline void setTrigLocL1Delay(int x) { m_delay = x; }
31  inline int getTrigLocL1Delay() const { return m_delay; }
32  void setParameters(const std::map<std::string,std::string>& my_keys_map);
33 
34  private:
35  int fetchNextId() noexcept(false);
36  void prepareWrite() noexcept(false) override;
37  void writeDB() noexcept(false);
38  void clear();
39  void fetchData(ODLTSConfig * result) noexcept(false);
40  int fetchID() noexcept(false);
41 
42  // User data
43  int m_ID;
45  int m_num;
46  int m_rate;
47  int m_delay;
48 
49 };
50 
51 #endif
int getTrigLocL1Delay() const
Definition: ODLTSConfig.h:31
std::string getTable() override
Definition: ODLTSConfig.h:16
#define noexcept
int getId() const
Definition: ODLTSConfig.h:19
void clear()
Definition: ODLTSConfig.cc:23
void setId(int id)
Definition: ODLTSConfig.h:18
int getRate() const
Definition: ODLTSConfig.h:28
void setNumberOfEvents(int x)
Definition: ODLTSConfig.h:24
int fetchNextId() noexcept(false)
Definition: ODLTSConfig.cc:53
int getNumberOfEvents() const
Definition: ODLTSConfig.h:25
void setTrigLocL1Delay(int x)
Definition: ODLTSConfig.h:30
void fetchData(ODLTSConfig *result) noexcept(false)
Definition: ODLTSConfig.cc:127
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: ODLTSConfig.cc:36
void setTriggerType(std::string x)
Definition: ODLTSConfig.h:21
std::string m_trg_type
Definition: ODLTSConfig.h:44
int fetchID() noexcept(false)
Definition: ODLTSConfig.cc:161
std::string getTriggerType() const
Definition: ODLTSConfig.h:22
void setRate(int x)
Definition: ODLTSConfig.h:27
void writeDB() noexcept(false)
Definition: ODLTSConfig.cc:97
void prepareWrite() noexcept(false) override
Definition: ODLTSConfig.cc:75
~ODLTSConfig() override
Definition: ODLTSConfig.cc:32