CMS 3D CMS Logo

ODEcalCycle.h
Go to the documentation of this file.
1 #ifndef ODECALCYCLE_H
2 #define ODECALCYCLE_H
3 
4 #include <map>
5 #include <stdexcept>
6 
8 
9 class ODEcalCycle : public IODConfig {
10 public:
11  friend class EcalCondDBInterface;
12 
13  ODEcalCycle();
14  ~ODEcalCycle() override;
15 
16  // User data methods
17  inline std::string getTable() override { return "ECAL_CYCLE"; }
18 
19  inline void setId(int id) { m_ID = id; }
20  inline int getId() const { return m_ID; }
21  inline void setTag(std::string x) { m_tag = x; }
22  inline std::string getTag() const { return m_tag; }
23  inline void setVersion(int x) { m_version = x; }
24  inline int getVersion() const { return m_version; }
25  inline void setSeqNum(int x) { m_seq_num = x; }
26  inline int getSeqNum() const { return m_seq_num; }
27 
28  inline void setSequenceId(int x) { m_seq_id = x; }
29  inline int getSequenceId() const { return m_seq_id; }
30 
31  inline void setCycleNum(int x) { m_cycle_num = x; }
32  inline int getCycleNum() const { return m_cycle_num; }
33  inline void setCycleTag(std::string x) { m_cycle_tag = x; }
34  inline std::string getCycleTag() const { return m_cycle_tag; }
37  inline void setCCSId(int x) { m_ccs = x; }
38  inline int getCCSId() const { return m_ccs; }
39  inline void setDCCId(int x) { m_dcc = x; }
40  inline int getDCCId() const { return m_dcc; }
41  inline void setLaserId(int x) { m_laser = x; }
42  inline int getLaserId() const { return m_laser; }
43  inline void setLTCId(int x) { m_ltc = x; }
44  inline int getLTCId() const { return m_ltc; }
45  inline void setLTSId(int x) { m_lts = x; }
46  inline int getLTSId() const { return m_lts; }
47  inline void setDCUId(int x) { m_dcu = x; }
48  inline int getDCUId() const { return m_dcu; }
49  inline void setTCCId(int x) { m_tcc = x; }
50  inline int getTCCId() const { return m_tcc; }
51  inline void setTCCEEId(int x) { m_tcc_ee = x; }
52  inline int getTCCEEId() const { return m_tcc_ee; }
53  inline void setTTCCIId(int x) { m_ttcci = x; }
54  inline int getTTCCIId() const { return m_ttcci; }
55  inline void setMataqId(int x) { m_mataq = x; }
56  inline int getMataqId() const { return m_mataq; }
57  inline void setJBH4Id(int x) { m_jbh4 = x; }
58  inline int getJBH4Id() const { return m_jbh4; }
59  inline void setScanId(int x) { m_scan = x; }
60  inline int getScanId() const { return m_scan; }
61  inline void setTTCFId(int x) { m_ttcf = x; }
62  inline int getTTCFId() const { return m_ttcf; }
63  inline void setSRPId(int x) { m_srp = x; }
64  inline int getSRPId() const { return m_srp; }
65 
66  void printout();
67 
68 private:
69  void prepareWrite() noexcept(false) override;
70  void writeDB() noexcept(false);
71  void clear();
72  int fetchID() noexcept(false);
73  void setByID(int id) noexcept(false);
74  void fetchData(ODEcalCycle* result) noexcept(false);
75 
76  // User data
77  int m_ID;
78  std::string m_tag;
79  int m_version;
80  int m_seq_num;
81  int m_seq_id;
83  std::string m_cycle_tag;
85  int m_ccs;
86  int m_dcc;
87  int m_laser;
88  int m_ltc;
89  int m_lts;
90  int m_dcu;
91  int m_tcc;
92  int m_tcc_ee;
93  int m_ttcci;
94  int m_mataq;
95  int m_jbh4;
96  int m_scan;
97  int m_srp;
98  int m_ttcf;
99 };
100 
101 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
ODEcalCycle::m_ltc
int m_ltc
Definition: ODEcalCycle.h:88
ODEcalCycle
Definition: ODEcalCycle.h:9
ODEcalCycle::getSRPId
int getSRPId() const
Definition: ODEcalCycle.h:64
ODEcalCycle::setTCCEEId
void setTCCEEId(int x)
Definition: ODEcalCycle.h:51
ODEcalCycle::setTTCFId
void setTTCFId(int x)
Definition: ODEcalCycle.h:61
ODEcalCycle::setLaserId
void setLaserId(int x)
Definition: ODEcalCycle.h:41
ODEcalCycle::m_lts
int m_lts
Definition: ODEcalCycle.h:89
funct::false
false
Definition: Factorize.h:34
ODEcalCycle::m_version
int m_version
Definition: ODEcalCycle.h:79
ODEcalCycle::getMataqId
int getMataqId() const
Definition: ODEcalCycle.h:56
ODEcalCycle::getCycleDescription
std::string getCycleDescription() const
Definition: ODEcalCycle.h:36
ODEcalCycle::setSRPId
void setSRPId(int x)
Definition: ODEcalCycle.h:63
ODEcalCycle::ODEcalCycle
ODEcalCycle()
Definition: ODEcalCycle.cc:25
ODEcalCycle::getCycleNum
int getCycleNum() const
Definition: ODEcalCycle.h:32
ODEcalCycle::getDCCId
int getDCCId() const
Definition: ODEcalCycle.h:40
IODConfig.h
ODEcalCycle::getCCSId
int getCCSId() const
Definition: ODEcalCycle.h:38
ODEcalCycle::getSeqNum
int getSeqNum() const
Definition: ODEcalCycle.h:26
ODEcalCycle::setId
void setId(int id)
Definition: ODEcalCycle.h:19
ODEcalCycle::getTTCCIId
int getTTCCIId() const
Definition: ODEcalCycle.h:54
ODEcalCycle::getTTCFId
int getTTCFId() const
Definition: ODEcalCycle.h:62
ODEcalCycle::getTable
std::string getTable() override
Definition: ODEcalCycle.h:17
DDAxes::x
ODEcalCycle::setTTCCIId
void setTTCCIId(int x)
Definition: ODEcalCycle.h:53
ODEcalCycle::m_dcu
int m_dcu
Definition: ODEcalCycle.h:90
ODEcalCycle::setCycleTag
void setCycleTag(std::string x)
Definition: ODEcalCycle.h:33
ODEcalCycle::m_mataq
int m_mataq
Definition: ODEcalCycle.h:94
ODEcalCycle::setTag
void setTag(std::string x)
Definition: ODEcalCycle.h:21
ODEcalCycle::setSequenceId
void setSequenceId(int x)
Definition: ODEcalCycle.h:28
ODEcalCycle::printout
void printout()
Definition: ODEcalCycle.cc:263
ODEcalCycle::setByID
void setByID(int id) noexcept(false)
Definition: ODEcalCycle.cc:215
ODEcalCycle::getCycleTag
std::string getCycleTag() const
Definition: ODEcalCycle.h:34
ODEcalCycle::clear
void clear()
Definition: ODEcalCycle.cc:160
ODEcalCycle::setDCCId
void setDCCId(int x)
Definition: ODEcalCycle.h:39
ODEcalCycle::getLTSId
int getLTSId() const
Definition: ODEcalCycle.h:46
ODEcalCycle::m_seq_id
int m_seq_id
Definition: ODEcalCycle.h:81
ODEcalCycle::m_ID
int m_ID
Definition: ODEcalCycle.h:77
ODEcalCycle::setLTSId
void setLTSId(int x)
Definition: ODEcalCycle.h:45
ODEcalCycle::prepareWrite
void prepareWrite() noexcept(false) override
Definition: ODEcalCycle.cc:37
ODEcalCycle::setVersion
void setVersion(int x)
Definition: ODEcalCycle.h:23
ODEcalCycle::setJBH4Id
void setJBH4Id(int x)
Definition: ODEcalCycle.h:57
ODEcalCycle::setMataqId
void setMataqId(int x)
Definition: ODEcalCycle.h:55
ODEcalCycle::setScanId
void setScanId(int x)
Definition: ODEcalCycle.h:59
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ODEcalCycle::m_ttcci
int m_ttcci
Definition: ODEcalCycle.h:93
ODEcalCycle::m_seq_num
int m_seq_num
Definition: ODEcalCycle.h:80
ODEcalCycle::getTCCId
int getTCCId() const
Definition: ODEcalCycle.h:50
ODEcalCycle::m_srp
int m_srp
Definition: ODEcalCycle.h:97
ODEcalCycle::m_ccs
int m_ccs
Definition: ODEcalCycle.h:85
ODEcalCycle::m_dcc
int m_dcc
Definition: ODEcalCycle.h:86
ODEcalCycle::setSeqNum
void setSeqNum(int x)
Definition: ODEcalCycle.h:25
IODConfig
Definition: IODConfig.h:18
ODEcalCycle::fetchID
int fetchID() noexcept(false)
Definition: ODEcalCycle.cc:183
ODEcalCycle::getVersion
int getVersion() const
Definition: ODEcalCycle.h:24
ODEcalCycle::m_ttcf
int m_ttcf
Definition: ODEcalCycle.h:98
ODEcalCycle::setCycleDescription
void setCycleDescription(std::string x)
Definition: ODEcalCycle.h:35
ODEcalCycle::m_scan
int m_scan
Definition: ODEcalCycle.h:96
ODEcalCycle::setCCSId
void setCCSId(int x)
Definition: ODEcalCycle.h:37
ODEcalCycle::setLTCId
void setLTCId(int x)
Definition: ODEcalCycle.h:43
ODEcalCycle::m_laser
int m_laser
Definition: ODEcalCycle.h:87
ODEcalCycle::getId
int getId() const
Definition: ODEcalCycle.h:20
std
Definition: JetResolutionObject.h:76
ODEcalCycle::m_tcc
int m_tcc
Definition: ODEcalCycle.h:91
ODEcalCycle::setTCCId
void setTCCId(int x)
Definition: ODEcalCycle.h:49
ODEcalCycle::getDCUId
int getDCUId() const
Definition: ODEcalCycle.h:48
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
ODEcalCycle::m_jbh4
int m_jbh4
Definition: ODEcalCycle.h:95
ODEcalCycle::getLaserId
int getLaserId() const
Definition: ODEcalCycle.h:42
ODEcalCycle::getTag
std::string getTag() const
Definition: ODEcalCycle.h:22
ODEcalCycle::getLTCId
int getLTCId() const
Definition: ODEcalCycle.h:44
ODEcalCycle::m_cycle_description
std::string m_cycle_description
Definition: ODEcalCycle.h:84
ODEcalCycle::fetchData
void fetchData(ODEcalCycle *result) noexcept(false)
Definition: ODEcalCycle.cc:281
ODEcalCycle::~ODEcalCycle
~ODEcalCycle() override
Definition: ODEcalCycle.cc:35
ODEcalCycle::getJBH4Id
int getJBH4Id() const
Definition: ODEcalCycle.h:58
ODEcalCycle::getScanId
int getScanId() const
Definition: ODEcalCycle.h:60
mps_fire.result
result
Definition: mps_fire.py:303
ODEcalCycle::m_tcc_ee
int m_tcc_ee
Definition: ODEcalCycle.h:92
ODEcalCycle::setCycleNum
void setCycleNum(int x)
Definition: ODEcalCycle.h:31
ODEcalCycle::m_cycle_num
int m_cycle_num
Definition: ODEcalCycle.h:82
ODEcalCycle::getSequenceId
int getSequenceId() const
Definition: ODEcalCycle.h:29
ODEcalCycle::m_tag
std::string m_tag
Definition: ODEcalCycle.h:78
ODEcalCycle::m_cycle_tag
std::string m_cycle_tag
Definition: ODEcalCycle.h:83
ODEcalCycle::getTCCEEId
int getTCCEEId() const
Definition: ODEcalCycle.h:52
ODEcalCycle::writeDB
void writeDB() noexcept(false)
Definition: ODEcalCycle.cc:41
ODEcalCycle::setDCUId
void setDCUId(int x)
Definition: ODEcalCycle.h:47