CMS 3D CMS Logo

ODTTCFCycle.h
Go to the documentation of this file.
1 #ifndef ODTTCFCYCLE_H
2 #define ODTTCFCYCLE_H
3 
4 #include <stdexcept>
5 #include <iostream>
6 
8 
9 class ODTTCFCycle : public IODConfig {
10 public:
11  friend class EcalCondDBInterface;
12  friend class ODEcalCycle;
13 
14  ODTTCFCycle();
15  ~ODTTCFCycle() override;
16 
17  inline std::string getTable() override { return "ECAL_TTCF_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 setTTCFConfigurationID(int x) { m_ttcf_config_id = x; }
24  inline int getTTCFConfigurationID() const { return m_ttcf_config_id; }
25 
26  // Operators
27  inline bool operator==(const ODTTCFCycle &m) const { return (m_ID == m.m_ID); }
28  inline bool operator!=(const ODTTCFCycle &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(ODTTCFCycle *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
ODTTCFCycle::writeDB
void writeDB() noexcept(false)
Definition: ODTTCFCycle.cc:34
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
ODTTCFCycle::getId
int getId() const
Definition: ODTTCFCycle.h:20
ODEcalCycle
Definition: ODEcalCycle.h:9
funct::false
false
Definition: Factorize.h:34
ODTTCFCycle
Definition: ODTTCFCycle.h:9
ODTTCFCycle::operator==
bool operator==(const ODTTCFCycle &m) const
Definition: ODTTCFCycle.h:27
IODConfig.h
ODTTCFCycle::clear
void clear()
Definition: ODTTCFCycle.cc:54
ODTTCFCycle::ODTTCFCycle
ODTTCFCycle()
Definition: ODTTCFCycle.cc:9
ODTTCFCycle::setId
void setId(int id)
Definition: ODTTCFCycle.h:19
DDAxes::x
ODTTCFCycle::prepareWrite
void prepareWrite() noexcept(false) override
Definition: ODTTCFCycle.cc:21
ODTTCFCycle::setByID
void setByID(int id) noexcept(false)
Definition: ODTTCFCycle.cc:86
ODTTCFCycle::setTTCFConfigurationID
void setTTCFConfigurationID(int x)
Definition: ODTTCFCycle.h:23
ODTTCFCycle::getTable
std::string getTable() override
Definition: ODTTCFCycle.h:17
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
ODTTCFCycle::m_ID
int m_ID
Definition: ODTTCFCycle.h:32
ODTTCFCycle::insertConfig
void insertConfig() noexcept(false)
Definition: ODTTCFCycle.cc:134
ODTTCFCycle::operator!=
bool operator!=(const ODTTCFCycle &m) const
Definition: ODTTCFCycle.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ODTTCFCycle::~ODTTCFCycle
~ODTTCFCycle() override
Definition: ODTTCFCycle.cc:19
IODConfig
Definition: IODConfig.h:18
ODTTCFCycle::m_ttcf_config_id
int m_ttcf_config_id
Definition: ODTTCFCycle.h:33
ODTTCFCycle::fetchData
void fetchData(ODTTCFCycle *result) noexcept(false)
Definition: ODTTCFCycle.cc:109
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
ODTTCFCycle::getTTCFConfigurationID
int getTTCFConfigurationID() const
Definition: ODTTCFCycle.h:24
mps_fire.result
result
Definition: mps_fire.py:303
ODTTCFCycle::fetchID
int fetchID() noexcept(false)
Definition: ODTTCFCycle.cc:56