CMS 3D CMS Logo

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