CMS 3D CMS Logo

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