CMS 3D CMS Logo

ODRunConfigCycleInfo.h
Go to the documentation of this file.
1 #ifndef ODRUNCONFIGCYCLEINFO_H
2 #define ODRUNCONFIGCYCLEINFO_H
3 
4 #include <stdexcept>
5 #include <iostream>
6 
11 
13 public:
14  friend class EcalCondDBInterface;
15  friend class ODEcalCycle;
16 
18  ~ODRunConfigCycleInfo() override;
19 
20  inline std::string getTable() override { return "ECAL_CYCLE_DAT"; }
21 
22  // Methods for user data
23  inline void setId(int id) { m_ID = id; }
24  inline int getId() const { return m_ID; }
25 
28  //
29  void setTag(std::string x) { m_tag = x; }
30  std::string getTag() const { return m_tag; }
31  //
32  void setSequenceID(int x) { m_sequence_id = x; }
33  int getSequenceID() const { return m_sequence_id; }
34  //
35  void setCycleNumber(int n) { m_cycle_num = n; }
36  int getCycleNumber() const { return m_cycle_num; }
37  //
38 
39  // operators
40  inline bool operator==(const ODRunConfigCycleInfo &r) const { return (m_ID == r.m_ID); }
41  inline bool operator!=(const ODRunConfigCycleInfo &r) const { return !(*this == r); }
42 
43 private:
44  // User data for this IOV
45  int m_ID;
50 
51  void prepareWrite() noexcept(false) override;
52  void writeDB() noexcept(false);
53  void clear();
54  void fetchData(ODRunConfigCycleInfo *result) noexcept(false);
55  void insertConfig() noexcept(false);
56 
57  // Methods from IUniqueDBObject
58  int fetchID() noexcept(false); // fetches the Cycle by the seq_id and cycle_num
59  int fetchIDLast() noexcept(false); // fetches the Cycle by the seq_id and cycle_num
60  void setByID(int id) noexcept(false);
61 };
62 
63 #endif
ODRunConfigCycleInfo::insertConfig
void insertConfig() noexcept(false)
Definition: ODRunConfigCycleInfo.cc:186
ODRunConfigCycleInfo::m_tag
std::string m_tag
Definition: ODRunConfigCycleInfo.h:48
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
ODEcalCycle
Definition: ODEcalCycle.h:9
ODRunConfigCycleInfo
Definition: ODRunConfigCycleInfo.h:12
funct::false
false
Definition: Factorize.h:34
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
ODRunConfigCycleInfo::m_description
std::string m_description
Definition: ODRunConfigCycleInfo.h:49
ODRunConfigCycleInfo::operator!=
bool operator!=(const ODRunConfigCycleInfo &r) const
Definition: ODRunConfigCycleInfo.h:41
ODRunConfigCycleInfo::getTag
std::string getTag() const
Definition: ODRunConfigCycleInfo.h:30
ODRunConfigCycleInfo::fetchID
int fetchID() noexcept(false)
Definition: ODRunConfigCycleInfo.cc:73
IODConfig.h
ODRunConfigCycleInfo::writeDB
void writeDB() noexcept(false)
Definition: ODRunConfigCycleInfo.cc:48
ODRunConfigCycleInfo::getId
int getId() const
Definition: ODRunConfigCycleInfo.h:24
DDAxes::x
RunTypeDef.h
ODRunConfigCycleInfo::m_ID
int m_ID
Definition: ODRunConfigCycleInfo.h:45
ODRunConfigCycleInfo::getDescription
std::string getDescription() const
Definition: ODRunConfigCycleInfo.h:27
RunModeDef.h
ODRunConfigCycleInfo::setCycleNumber
void setCycleNumber(int n)
Definition: ODRunConfigCycleInfo.h:35
ODRunConfigCycleInfo::fetchData
void fetchData(ODRunConfigCycleInfo *result) noexcept(false)
Definition: ODRunConfigCycleInfo.cc:161
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ODRunConfigCycleInfo::ODRunConfigCycleInfo
ODRunConfigCycleInfo()
Definition: ODRunConfigCycleInfo.cc:11
ODRunConfigCycleInfo::~ODRunConfigCycleInfo
~ODRunConfigCycleInfo() override
Definition: ODRunConfigCycleInfo.cc:25
ODRunConfigCycleInfo::m_cycle_num
int m_cycle_num
Definition: ODRunConfigCycleInfo.h:47
IODConfig
Definition: IODConfig.h:18
RunSeqDef.h
alignCSCRings.r
r
Definition: alignCSCRings.py:93
ODRunConfigCycleInfo::operator==
bool operator==(const ODRunConfigCycleInfo &r) const
Definition: ODRunConfigCycleInfo.h:40
ODRunConfigCycleInfo::getTable
std::string getTable() override
Definition: ODRunConfigCycleInfo.h:20
ODRunConfigCycleInfo::m_sequence_id
int m_sequence_id
Definition: ODRunConfigCycleInfo.h:46
ODRunConfigCycleInfo::setDescription
void setDescription(std::string x)
Definition: ODRunConfigCycleInfo.h:26
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
ODRunConfigCycleInfo::clear
void clear()
Definition: ODRunConfigCycleInfo.cc:27
ODRunConfigCycleInfo::fetchIDLast
int fetchIDLast() noexcept(false)
Definition: ODRunConfigCycleInfo.cc:108
ODRunConfigCycleInfo::getSequenceID
int getSequenceID() const
Definition: ODRunConfigCycleInfo.h:33
ODRunConfigCycleInfo::setSequenceID
void setSequenceID(int x)
Definition: ODRunConfigCycleInfo.h:32
mps_fire.result
result
Definition: mps_fire.py:303
ODRunConfigCycleInfo::prepareWrite
void prepareWrite() noexcept(false) override
Definition: ODRunConfigCycleInfo.cc:34
ODRunConfigCycleInfo::setByID
void setByID(int id) noexcept(false)
Definition: ODRunConfigCycleInfo.cc:132
ODRunConfigCycleInfo::setId
void setId(int id)
Definition: ODRunConfigCycleInfo.h:23
ODRunConfigCycleInfo::setTag
void setTag(std::string x)
Definition: ODRunConfigCycleInfo.h:29
ODRunConfigCycleInfo::getCycleNumber
int getCycleNumber() const
Definition: ODRunConfigCycleInfo.h:36