CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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;
44  std::string m_trg_type;
45  int m_num;
46  int m_rate;
47  int m_delay;
48 };
49 
50 #endif
uint16_t *__restrict__ id
int getTrigLocL1Delay() const
Definition: ODLTSConfig.h:31
std::string getTable() override
Definition: ODLTSConfig.h:16
int getId() const
Definition: ODLTSConfig.h:19
void clear()
Definition: ODLTSConfig.cc:21
void setId(int id)
Definition: ODLTSConfig.h:18
tuple result
Definition: mps_fire.py:311
int getRate() const
Definition: ODLTSConfig.h:28
void setNumberOfEvents(int x)
Definition: ODLTSConfig.h:24
int fetchNextId() noexcept(false)
Definition: ODLTSConfig.cc:48
int getNumberOfEvents() const
Definition: ODLTSConfig.h:25
void setTrigLocL1Delay(int x)
Definition: ODLTSConfig.h:30
void fetchData(ODLTSConfig *result) noexcept(false)
Definition: ODLTSConfig.cc:108
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: ODLTSConfig.cc:30
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:139
std::string getTriggerType() const
Definition: ODLTSConfig.h:22
void setRate(int x)
Definition: ODLTSConfig.h:27
void writeDB() noexcept(false)
Definition: ODLTSConfig.cc:86
void prepareWrite() noexcept(false) override
Definition: ODLTSConfig.cc:67
~ODLTSConfig() override
Definition: ODLTSConfig.cc:28