CMS 3D CMS Logo

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