CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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();
14 
15  // User data methods
16  inline std::string getTable() { 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() throw(std::runtime_error);
46  void setParameters(const std::map<std::string,std::string>& my_keys_map);
47 
48  private:
49  void prepareWrite() throw(std::runtime_error);
50 
51  void writeDB() throw(std::runtime_error);
52 
53  void clear();
54 
55  void fetchData(ODFEDAQConfig * result) throw(std::runtime_error);
56 
57  int fetchID() throw(std::runtime_error);
58 
59 
60  // User data
61  int m_ID;
62  int m_ped;
63  int m_del;
64  int m_wei;
65 
66  int m_bxt;
67  int m_btt;
68  int m_tbxt;
69  int m_tbtt;
70  int m_version;
71  std::string m_com;
72 
73 };
74 
75 #endif
int getTriggerBadXtId() const
Definition: ODFEDAQConfig.h:38
void setId(int id)
Definition: ODFEDAQConfig.h:18
int getVersion() const
Definition: ODFEDAQConfig.h:24
void setBadXtId(int x)
Definition: ODFEDAQConfig.h:33
int getDelayId() const
Definition: ODFEDAQConfig.h:29
void prepareWrite()
void fetchData(ODFEDAQConfig *result)
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
int getTriggerBadTTId() const
Definition: ODFEDAQConfig.h:40
int getPedestalId() const
Definition: ODFEDAQConfig.h:27
void setVersion(int id)
Definition: ODFEDAQConfig.h:23
void setPedestalId(int x)
Definition: ODFEDAQConfig.h:26
int getBadXtId() const
Definition: ODFEDAQConfig.h:34
tuple result
Definition: query.py:137
int getId() const
Definition: ODFEDAQConfig.h:19
void setWeightId(int x)
Definition: ODFEDAQConfig.h:30
int getBadTTId() const
Definition: ODFEDAQConfig.h:36
void setBadTTId(int x)
Definition: ODFEDAQConfig.h:35
string const
Definition: compareJSON.py:14
void setComment(std::string x)
Definition: ODFEDAQConfig.h:42
std::string getTable()
Definition: ODFEDAQConfig.h:16
int getWeightId() const
Definition: ODFEDAQConfig.h:31
void setTriggerBadXtId(int x)
Definition: ODFEDAQConfig.h:37
std::string getComment() const
Definition: ODFEDAQConfig.h:43
std::string m_com
Definition: ODFEDAQConfig.h:71