CMS 3D CMS Logo

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