CMS 3D CMS Logo

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
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
ODLTSConfig::m_delay
int m_delay
Definition: ODLTSConfig.h:47
ODLTSConfig::writeDB
void writeDB() noexcept(false)
Definition: ODLTSConfig.cc:86
funct::false
false
Definition: Factorize.h:29
ODLTSConfig::clear
void clear()
Definition: ODLTSConfig.cc:21
ODLTSConfig::getTable
std::string getTable() override
Definition: ODLTSConfig.h:16
ODLTSConfig::setTriggerType
void setTriggerType(std::string x)
Definition: ODLTSConfig.h:21
ODLTSConfig::getRate
int getRate() const
Definition: ODLTSConfig.h:28
ODLTSConfig::setNumberOfEvents
void setNumberOfEvents(int x)
Definition: ODLTSConfig.h:24
IODConfig.h
ODLTSConfig::fetchData
void fetchData(ODLTSConfig *result) noexcept(false)
Definition: ODLTSConfig.cc:108
ODLTSConfig::setRate
void setRate(int x)
Definition: ODLTSConfig.h:27
ODLTSConfig::m_rate
int m_rate
Definition: ODLTSConfig.h:46
DDAxes::x
ODLTSConfig::setId
void setId(int id)
Definition: ODLTSConfig.h:18
ODLTSConfig::m_num
int m_num
Definition: ODLTSConfig.h:45
ODLTSConfig::getTrigLocL1Delay
int getTrigLocL1Delay() const
Definition: ODLTSConfig.h:31
ODLTSConfig::getId
int getId() const
Definition: ODLTSConfig.h:19
ODLTSConfig::getNumberOfEvents
int getNumberOfEvents() const
Definition: ODLTSConfig.h:25
ODLTSConfig::fetchNextId
int fetchNextId() noexcept(false)
Definition: ODLTSConfig.cc:48
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ODLTSConfig::setTrigLocL1Delay
void setTrigLocL1Delay(int x)
Definition: ODLTSConfig.h:30
ODLTSConfig::ODLTSConfig
ODLTSConfig()
Definition: ODLTSConfig.cc:11
IODConfig
Definition: IODConfig.h:18
ODLTSConfig::~ODLTSConfig
~ODLTSConfig() override
Definition: ODLTSConfig.cc:28
ODLTSConfig::fetchID
int fetchID() noexcept(false)
Definition: ODLTSConfig.cc:139
std
Definition: JetResolutionObject.h:76
ODLTSConfig::getTriggerType
std::string getTriggerType() const
Definition: ODLTSConfig.h:22
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
ODLTSConfig::prepareWrite
void prepareWrite() noexcept(false) override
Definition: ODLTSConfig.cc:67
ODLTSConfig::m_ID
int m_ID
Definition: ODLTSConfig.h:43
mps_fire.result
result
Definition: mps_fire.py:311
ODLTSConfig
Definition: ODLTSConfig.h:9
ODLTSConfig::m_trg_type
std::string m_trg_type
Definition: ODLTSConfig.h:44
ODLTSConfig::setParameters
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: ODLTSConfig.cc:30