CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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() override;
14 
15  // User data methods
16  inline std::string getTable() override { 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  int fetchNextId() noexcept(false);
66  void setParameters(const std::map<std::string, std::string>& my_keys_map);
67 
68 private:
69  void prepareWrite() noexcept(false) override;
70 
71  void writeDB() noexcept(false);
72 
73  void clear();
74 
75  void fetchData(ODCCSConfig* result) noexcept(false);
76 
77  int fetchID() noexcept(false);
78 
79  // User data
80  int m_ID;
81  int m_daccal;
82  int m_delay;
83  std::string m_gain;
84  std::string m_memgain;
89  std::string m_system;
90  std::string m_trg_mode;
91  std::string m_trg_filter;
92  int m_clock;
93  std::string m_bgo;
95  int m_daq;
96  int m_trg;
97  int m_bc0;
100 };
101 
102 #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:93
int getTEDelay() const
Definition: ODCCSConfig.h:62
void writeDB() noexcept(false)
Definition: ODCCSConfig.cc:146
uint16_t *__restrict__ id
int getBC0Delay() const
Definition: ODCCSConfig.h:60
void setClock(int x)
Definition: ODCCSConfig.h:48
std::string getTrgFilter() const
Definition: ODCCSConfig.h:46
int fetchID() noexcept(false)
Definition: ODCCSConfig.cc:243
int m_tts_mask
Definition: ODCCSConfig.h:94
void fetchData(ODCCSConfig *result) noexcept(false)
Definition: ODCCSConfig.cc:199
int fetchNextId() noexcept(false)
Definition: ODCCSConfig.cc:60
std::string getTable() override
Definition: ODCCSConfig.h:16
void setOffsetLow(int x)
Definition: ODCCSConfig.h:36
int m_bc0_delay
Definition: ODCCSConfig.h:98
int getId() const
Definition: ODCCSConfig.h:19
void setOffsetMid(int x)
Definition: ODCCSConfig.h:39
int getOffsetHigh() const
Definition: ODCCSConfig.h:34
int getClock() const
Definition: ODCCSConfig.h:49
std::string m_memgain
Definition: ODCCSConfig.h:84
tuple result
Definition: mps_fire.py:311
std::string m_trg_filter
Definition: ODCCSConfig.h:91
std::string m_system
Definition: ODCCSConfig.h:89
int getOffsetLow() const
Definition: ODCCSConfig.h:37
std::string getBGOSource() const
Definition: ODCCSConfig.h:51
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: ODCCSConfig.cc:102
int m_offset_high
Definition: ODCCSConfig.h:85
void prepareWrite() noexcept(false) override
Definition: ODCCSConfig.cc:79
int getDelay() const
Definition: ODCCSConfig.h:25
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
~ODCCSConfig() override
Definition: ODCCSConfig.cc:58
std::string getTrgMode() const
Definition: ODCCSConfig.h:43
std::string m_pedestal_offset_release
Definition: ODCCSConfig.h:88
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:90
std::string getGain() const
Definition: ODCCSConfig.h:28
int m_offset_low
Definition: ODCCSConfig.h:86
void setGain(std::string x)
Definition: ODCCSConfig.h:27
void setMemGain(std::string x)
Definition: ODCCSConfig.h:30
void setTTSMask(int x)
Definition: ODCCSConfig.h:52
int getBC0Counter() const
Definition: ODCCSConfig.h:59
int m_te_delay
Definition: ODCCSConfig.h:99
void setDaccal(int x)
Definition: ODCCSConfig.h:21
void clear()
Definition: ODCCSConfig.cc:39
int getTrgBCIDPreset() const
Definition: ODCCSConfig.h:57
void setBGOSource(std::string x)
Definition: ODCCSConfig.h:50
int m_offset_mid
Definition: ODCCSConfig.h:87
std::string m_gain
Definition: ODCCSConfig.h:83
int getOffsetMid() const
Definition: ODCCSConfig.h:40
int getDAQBCIDPreset() const
Definition: ODCCSConfig.h:55