test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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();
14 
15  // User data methods
16  inline std::string getTable() { 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() throw(std::runtime_error);
36  void prepareWrite() throw(std::runtime_error);
37  void writeDB() throw(std::runtime_error);
38  void clear();
39  void fetchData(ODLTSConfig * result) throw(std::runtime_error);
40  int fetchID() throw(std::runtime_error);
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 
51 #endif
void prepareWrite()
Definition: ODLTSConfig.cc:75
int getTrigLocL1Delay() const
Definition: ODLTSConfig.h:31
void writeDB()
Definition: ODLTSConfig.cc:97
int getId() const
Definition: ODLTSConfig.h:19
void clear()
Definition: ODLTSConfig.cc:23
void setId(int id)
Definition: ODLTSConfig.h:18
void fetchData(ODLTSConfig *result)
Definition: ODLTSConfig.cc:127
tuple result
Definition: mps_fire.py:84
int getRate() const
Definition: ODLTSConfig.h:28
void setNumberOfEvents(int x)
Definition: ODLTSConfig.h:24
int getNumberOfEvents() const
Definition: ODLTSConfig.h:25
void setTrigLocL1Delay(int x)
Definition: ODLTSConfig.h:30
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: ODLTSConfig.cc:36
int fetchNextId()
Definition: ODLTSConfig.cc:53
void setTriggerType(std::string x)
Definition: ODLTSConfig.h:21
std::string m_trg_type
Definition: ODLTSConfig.h:44
std::string getTriggerType() const
Definition: ODLTSConfig.h:22
void setRate(int x)
Definition: ODLTSConfig.h:27
std::string getTable()
Definition: ODLTSConfig.h:16