CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ODCCSConfig.h
Go to the documentation of this file.
1 #ifndef ODCCSCONFIG_H
2 #define ODCCSCONFIG_H
3 
4 #include <map>
5 #include <string>
6 
8 
9 class ODCCSConfig : public IODConfig {
10  public:
11  friend class EcalCondDBInterface;
12  ODCCSConfig();
13  ~ODCCSConfig();
14 
15  // User data methods
16  inline std::string getTable() { return "ECAL_CCS_CONFIGURATION"; }
17 
18  inline void setId(int id) { m_ID = id; }
19  inline int getId() const { return m_ID; }
20 
21  inline void setDaccal(int x) { m_daccal = x; }
22  inline int getDaccal() const { return m_daccal; }
23 
24  inline void setDelay(int x) { m_delay = x; }
25  inline int getDelay() const { return m_delay; }
26 
27  inline void setGain(std::string x) { m_gain = x; }
28  inline std::string getGain() const { return m_gain; }
29 
30  inline void setMemGain(std::string x) { m_memgain = x; }
31  inline std::string getMemGain() const { return m_memgain; }
32 
33  inline void setOffsetHigh(int x) { m_offset_high = x; }
34  inline int getOffsetHigh() const { return m_offset_high; }
35 
36  inline void setOffsetLow(int x) { m_offset_low = x; }
37  inline int getOffsetLow() const { return m_offset_low; }
38 
39  inline void setOffsetMid(int x) { m_offset_mid = x; }
40  inline int getOffsetMid() const { return m_offset_mid; }
41 
42  inline void setTrgMode(std::string x) { m_trg_mode = x; }
43  inline std::string getTrgMode() const { return m_trg_mode; }
44 
45  inline void setTrgFilter(std::string x) { m_trg_filter = x; }
46  inline std::string getTrgFilter() const { return m_trg_filter; }
47 
48  inline void setClock(int x) { m_clock = x; }
49  inline int getClock() const { return m_clock; }
50  inline void setBGOSource(std::string x) { m_bgo = x; }
51  inline std::string getBGOSource() const { return m_bgo; }
52  inline void setTTSMask(int x) { m_tts_mask = x; }
53  inline int getTTSMask() const { return m_tts_mask; }
54  inline void setDAQBCIDPreset(int x) { m_daq = x; }
55  inline int getDAQBCIDPreset() const { return m_daq; }
56  inline void setTrgBCIDPreset(int x) { m_trg = x; }
57  inline int getTrgBCIDPreset() const { return m_trg; }
58  inline void setBC0Counter(int x) { m_bc0 = x; }
59  inline int getBC0Counter() const { return m_bc0; }
60  inline int getBC0Delay() const { return m_bc0_delay; }
61  inline void setBC0Delay(int x) { m_bc0_delay = x; }
62  inline int getTEDelay() const { return m_te_delay; }
63  inline void setTEDelay(int x) { m_te_delay = x; }
64 
65 
66  int fetchNextId() throw(std::runtime_error);
67  void setParameters(std::map<std::string,std::string> my_keys_map);
68 
69  private:
70  void prepareWrite() throw(std::runtime_error);
71 
72  void writeDB() throw(std::runtime_error);
73 
74  void clear();
75 
76  void fetchData(ODCCSConfig * result) throw(std::runtime_error);
77 
78  int fetchID() throw(std::runtime_error);
79 
80 
81  // User data
82  int m_ID;
83  int m_daccal;
84  int m_delay;
85  std::string m_gain;
86  std::string m_memgain;
91  std::string m_system;
92  std::string m_trg_mode;
93  std::string m_trg_filter;
94  int m_clock;
95  std::string m_bgo;
97  int m_daq;
98  int m_trg;
99  int m_bc0;
102 
103 };
104 
105 #endif
int getTTSMask() const
Definition: ODCCSConfig.h:53
void setBC0Counter(int x)
Definition: ODCCSConfig.h:58
void setDelay(int x)
Definition: ODCCSConfig.h:24
std::string m_bgo
Definition: ODCCSConfig.h:95
int getTEDelay() const
Definition: ODCCSConfig.h:62
int getBC0Delay() const
Definition: ODCCSConfig.h:60
void setClock(int x)
Definition: ODCCSConfig.h:48
std::string getTrgFilter() const
Definition: ODCCSConfig.h:46
int m_tts_mask
Definition: ODCCSConfig.h:96
void fetchData(ODCCSConfig *result)
Definition: ODCCSConfig.cc:195
int fetchNextId()
Definition: ODCCSConfig.cc:58
void setOffsetLow(int x)
Definition: ODCCSConfig.h:36
int getId() const
Definition: ODCCSConfig.h:19
void setOffsetMid(int x)
Definition: ODCCSConfig.h:39
int getOffsetHigh() const
Definition: ODCCSConfig.h:34
void writeDB()
Definition: ODCCSConfig.cc:135
int getClock() const
Definition: ODCCSConfig.h:49
dictionary map
Definition: Association.py:205
std::string m_memgain
Definition: ODCCSConfig.h:86
std::string m_trg_filter
Definition: ODCCSConfig.h:93
std::string m_system
Definition: ODCCSConfig.h:91
int getOffsetLow() const
Definition: ODCCSConfig.h:37
std::string getBGOSource() const
Definition: ODCCSConfig.h:51
int m_offset_high
Definition: ODCCSConfig.h:87
int getDelay() const
Definition: ODCCSConfig.h:25
tuple result
Definition: query.py:137
void setTrgBCIDPreset(int x)
Definition: ODCCSConfig.h:56
void setOffsetHigh(int x)
Definition: ODCCSConfig.h:33
int getDaccal() const
Definition: ODCCSConfig.h:22
void setTrgFilter(std::string x)
Definition: ODCCSConfig.h:45
void setTrgMode(std::string x)
Definition: ODCCSConfig.h:42
std::string getMemGain() const
Definition: ODCCSConfig.h:31
void setDAQBCIDPreset(int x)
Definition: ODCCSConfig.h:54
std::string getTrgMode() const
Definition: ODCCSConfig.h:43
std::string m_pedestal_offset_release
Definition: ODCCSConfig.h:90
void setBC0Delay(int x)
Definition: ODCCSConfig.h:61
void setId(int id)
Definition: ODCCSConfig.h:18
void setTEDelay(int x)
Definition: ODCCSConfig.h:63
std::string m_trg_mode
Definition: ODCCSConfig.h:92
std::string getTable()
Definition: ODCCSConfig.h:16
std::string getGain() const
Definition: ODCCSConfig.h:28
int m_offset_low
Definition: ODCCSConfig.h:88
void setGain(std::string x)
Definition: ODCCSConfig.h:27
void setParameters(std::map< std::string, std::string > my_keys_map)
Definition: ODCCSConfig.cc:104
#define private
Definition: FWFileEntry.h:18
void setMemGain(std::string x)
Definition: ODCCSConfig.h:30
void setTTSMask(int x)
Definition: ODCCSConfig.h:52
int getBC0Counter() const
Definition: ODCCSConfig.h:59
void prepareWrite()
Definition: ODCCSConfig.cc:79
void setDaccal(int x)
Definition: ODCCSConfig.h:21
void clear()
Definition: ODCCSConfig.cc:31
Definition: DDAxes.h:10
int getTrgBCIDPreset() const
Definition: ODCCSConfig.h:57
void setBGOSource(std::string x)
Definition: ODCCSConfig.h:50
int m_offset_mid
Definition: ODCCSConfig.h:89
std::string m_gain
Definition: ODCCSConfig.h:85
int getOffsetMid() const
Definition: ODCCSConfig.h:40
int getDAQBCIDPreset() const
Definition: ODCCSConfig.h:55