CMS 3D CMS Logo

ODLTCCycle.h
Go to the documentation of this file.
1 #ifndef ODLTCCYCLE_H
2 #define ODLTCCYCLE_H
3 
4 #include <stdexcept>
5 #include <iostream>
6 
8 
9 class ODLTCCycle : public IODConfig {
10 public:
11  friend class EcalCondDBInterface;
12  friend class ODEcalCycle;
13 
14  ODLTCCycle();
15  ~ODLTCCycle() override;
16 
17  inline std::string getTable() override { return "ECAL_LTC_CYCLE"; }
18 
19  inline void setId(int id) { m_ID = id; }
20  inline int getId() const { return m_ID; };
21 
22  // Methods for user data
23  inline void setLTCConfigurationID(int x) { m_ltc_config_id = x; }
24  inline int getLTCConfigurationID() const { return m_ltc_config_id; }
25 
26  // Operators
27  inline bool operator==(const ODLTCCycle &m) const { return (m_ID == m.m_ID); }
28  inline bool operator!=(const ODLTCCycle &m) const { return !(*this == m); }
29 
30 private:
31  // User data
32  int m_ID;
34  void writeDB() noexcept(false);
35  void prepareWrite() noexcept(false) override;
36  void clear();
37  void fetchData(ODLTCCycle *result) noexcept(false);
38  void insertConfig() noexcept(false);
39 
40  // Methods from IUniqueDBObject
41  int fetchID() noexcept(false);
42  void setByID(int id) noexcept(false);
43 };
44 
45 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
ODEcalCycle
Definition: ODEcalCycle.h:9
funct::false
false
Definition: Factorize.h:34
ODLTCCycle::clear
void clear()
Definition: ODLTCCycle.cc:54
ODLTCCycle::getId
int getId() const
Definition: ODLTCCycle.h:20
ODLTCCycle::getTable
std::string getTable() override
Definition: ODLTCCycle.h:17
ODLTCCycle::~ODLTCCycle
~ODLTCCycle() override
Definition: ODLTCCycle.cc:19
IODConfig.h
DDAxes::x
ODLTCCycle::ODLTCCycle
ODLTCCycle()
Definition: ODLTCCycle.cc:9
ODLTCCycle::prepareWrite
void prepareWrite() noexcept(false) override
Definition: ODLTCCycle.cc:21
ODLTCCycle::operator==
bool operator==(const ODLTCCycle &m) const
Definition: ODLTCCycle.h:27
ODLTCCycle::m_ltc_config_id
int m_ltc_config_id
Definition: ODLTCCycle.h:33
ODLTCCycle::fetchData
void fetchData(ODLTCCycle *result) noexcept(false)
Definition: ODLTCCycle.cc:109
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
ODLTCCycle::setId
void setId(int id)
Definition: ODLTCCycle.h:19
ODLTCCycle
Definition: ODLTCCycle.h:9
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ODLTCCycle::fetchID
int fetchID() noexcept(false)
Definition: ODLTCCycle.cc:56
ODLTCCycle::getLTCConfigurationID
int getLTCConfigurationID() const
Definition: ODLTCCycle.h:24
ODLTCCycle::operator!=
bool operator!=(const ODLTCCycle &m) const
Definition: ODLTCCycle.h:28
ODLTCCycle::setLTCConfigurationID
void setLTCConfigurationID(int x)
Definition: ODLTCCycle.h:23
IODConfig
Definition: IODConfig.h:18
ODLTCCycle::insertConfig
void insertConfig() noexcept(false)
Definition: ODLTCCycle.cc:134
ODLTCCycle::setByID
void setByID(int id) noexcept(false)
Definition: ODLTCCycle.cc:86
ODLTCCycle::m_ID
int m_ID
Definition: ODLTCCycle.h:32
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
mps_fire.result
result
Definition: mps_fire.py:303
ODLTCCycle::writeDB
void writeDB() noexcept(false)
Definition: ODLTCCycle.cc:34