CMS 3D CMS Logo

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