CMS 3D CMS Logo

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