CMS 3D CMS Logo

ODRunConfigSeqInfo.h
Go to the documentation of this file.
1 #ifndef ODRUNCONFIGSEQINFO_H
2 #define ODRUNCONFIGSEQINFO_H
3 
4 #include <stdexcept>
5 #include <iostream>
6 
12 
13 typedef int run_t;
14 
15 class ODRunConfigSeqInfo : public IODConfig {
16 public:
17  friend class EcalCondDBInterface;
18 
20  ~ODRunConfigSeqInfo() override;
21 
22  inline std::string getTable() override { return "ECAL_SEQUENCE_DAT"; }
23 
24  // Methods for user data
25 
26  inline void setId(int id) { m_ID = id; }
27  inline int getId() const { return m_ID; }
28 
30  inline std::string getDescription() const { return m_description; }
31  inline void setEcalConfigId(int x) { m_ecal_config_id = x; }
32  inline int getEcalConfigId() const { return m_ecal_config_id; }
33  inline void setNumberOfCycles(int x) { m_cycles = x; }
34  inline void setSequenceId(int x) { m_ID = x; }
35  inline int getSequenceId() const { return m_ID; }
36  inline int getNumberOfCycles() const { return m_cycles; }
37  inline void setSequenceNumber(int x) { m_seq_num = x; }
38  inline int getSequenceNumber() const { return m_seq_num; }
39  //
40  RunSeqDef getRunSeqDef() const;
41  void setRunSeqDef(const RunSeqDef &runSeqDef);
42 
43  // operators
44  inline bool operator==(const ODRunConfigSeqInfo &r) const { return (m_ID == r.m_ID); }
45  inline bool operator!=(const ODRunConfigSeqInfo &r) const { return !(*this == r); }
46 
47 private:
48  int m_ID;
50  int m_seq_num;
52  int m_cycles;
55 
56  // Methods from IUniqueDBObject
57  int fetchID() noexcept(false); // fetches the sequence by the ecal_config_id and seq_num
58  int fetchIDLast() noexcept(false); // fetches the sequence by the ecal_config_id and seq_num
59  void setByID(int id) noexcept(false);
60 
61  void writeDB() noexcept(false);
62 
63  void prepareWrite() noexcept(false) override;
64 
65  void fetchData(ODRunConfigSeqInfo *result) noexcept(false);
66  void clear();
67 };
68 
69 #endif
run_t
int run_t
Definition: ODRunConfigSeqInfo.h:13
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
funct::false
false
Definition: Factorize.h:34
ODRunConfigSeqInfo::fetchData
void fetchData(ODRunConfigSeqInfo *result) noexcept(false)
Definition: ODRunConfigSeqInfo.cc:181
ODRunConfigSeqInfo::m_cycles
int m_cycles
Definition: ODRunConfigSeqInfo.h:52
ODRunConfigSeqInfo::prepareWrite
void prepareWrite() noexcept(false) override
Definition: ODRunConfigSeqInfo.cc:129
ODRunConfigSeqInfo::setEcalConfigId
void setEcalConfigId(int x)
Definition: ODRunConfigSeqInfo.h:31
IODConfig.h
ODRunConfigSeqInfo::getSequenceId
int getSequenceId() const
Definition: ODRunConfigSeqInfo.h:35
ODRunConfigSeqInfo::setNumberOfCycles
void setNumberOfCycles(int x)
Definition: ODRunConfigSeqInfo.h:33
ODRunConfigSeqInfo::clear
void clear()
Definition: ODRunConfigSeqInfo.cc:172
DDAxes::x
ODRunConfigSeqInfo::getRunSeqDef
RunSeqDef getRunSeqDef() const
Definition: ODRunConfigSeqInfo.cc:29
ODRunConfigSeqInfo::getSequenceNumber
int getSequenceNumber() const
Definition: ODRunConfigSeqInfo.h:38
RunTypeDef.h
ODRunConfigSeqInfo::operator==
bool operator==(const ODRunConfigSeqInfo &r) const
Definition: ODRunConfigSeqInfo.h:44
ODRunConfigSeqInfo::setRunSeqDef
void setRunSeqDef(const RunSeqDef &runSeqDef)
Definition: ODRunConfigSeqInfo.cc:30
ODRunConfigSeqInfo::fetchIDLast
int fetchIDLast() noexcept(false)
Definition: ODRunConfigSeqInfo.cc:71
ODRunConfigSeqInfo::setSequenceNumber
void setSequenceNumber(int x)
Definition: ODRunConfigSeqInfo.h:37
ODRunConfigSeqInfo::m_ecal_config_id
int m_ecal_config_id
Definition: ODRunConfigSeqInfo.h:49
RunModeDef.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
RunSeqDef
Definition: RunSeqDef.h:13
ODRunConfigSeqInfo::setDescription
void setDescription(std::string x)
Definition: ODRunConfigSeqInfo.h:29
ODRunConfigSeqInfo::m_seq_num
int m_seq_num
Definition: ODRunConfigSeqInfo.h:50
ODRunConfigSeqInfo::setId
void setId(int id)
Definition: ODRunConfigSeqInfo.h:26
Tm.h
IODConfig
Definition: IODConfig.h:18
ODRunConfigSeqInfo::setSequenceId
void setSequenceId(int x)
Definition: ODRunConfigSeqInfo.h:34
RunSeqDef.h
ODRunConfigSeqInfo::operator!=
bool operator!=(const ODRunConfigSeqInfo &r) const
Definition: ODRunConfigSeqInfo.h:45
ODRunConfigSeqInfo::getTable
std::string getTable() override
Definition: ODRunConfigSeqInfo.h:22
ODRunConfigSeqInfo::ODRunConfigSeqInfo
ODRunConfigSeqInfo()
Definition: ODRunConfigSeqInfo.cc:11
alignCSCRings.r
r
Definition: alignCSCRings.py:93
ODRunConfigSeqInfo::getNumberOfCycles
int getNumberOfCycles() const
Definition: ODRunConfigSeqInfo.h:36
ODRunConfigSeqInfo::writeDB
void writeDB() noexcept(false)
Definition: ODRunConfigSeqInfo.cc:142
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
ODRunConfigSeqInfo::getEcalConfigId
int getEcalConfigId() const
Definition: ODRunConfigSeqInfo.h:32
ODRunConfigSeqInfo::m_description
std::string m_description
Definition: ODRunConfigSeqInfo.h:54
ODRunConfigSeqInfo::m_ID
int m_ID
Definition: ODRunConfigSeqInfo.h:48
ODRunConfigSeqInfo::m_run_seq
RunSeqDef m_run_seq
Definition: ODRunConfigSeqInfo.h:53
ODRunConfigSeqInfo::setByID
void setByID(int id) noexcept(false)
Definition: ODRunConfigSeqInfo.cc:95
ODRunConfigSeqInfo::fetchID
int fetchID() noexcept(false)
Definition: ODRunConfigSeqInfo.cc:37
mps_fire.result
result
Definition: mps_fire.py:303
ODRunConfigSeqInfo::m_sequence_id
int m_sequence_id
Definition: ODRunConfigSeqInfo.h:51
ODRunConfigSeqInfo::getDescription
std::string getDescription() const
Definition: ODRunConfigSeqInfo.h:30
ODRunConfigSeqInfo::getId
int getId() const
Definition: ODRunConfigSeqInfo.h:27
ODRunConfigSeqInfo::~ODRunConfigSeqInfo
~ODRunConfigSeqInfo() override
Definition: ODRunConfigSeqInfo.cc:26
ODRunConfigSeqInfo
Definition: ODRunConfigSeqInfo.h:15