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;
79  int m_version;
80  int m_seq_num;
81  int m_seq_id;
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 
102 #endif
void setSequenceId(int x)
Definition: ODEcalCycle.h:28
int getSeqNum() const
Definition: ODEcalCycle.h:26
std::string getCycleTag() const
Definition: ODEcalCycle.h:34
std::string getTable() override
Definition: ODEcalCycle.h:17
int getJBH4Id() const
Definition: ODEcalCycle.h:58
void clear()
Definition: ODEcalCycle.cc:179
~ODEcalCycle() override
Definition: ODEcalCycle.cc:38
int getSequenceId() const
Definition: ODEcalCycle.h:29
void writeDB() noexcept(false)
Definition: ODEcalCycle.cc:54
void setDCUId(int x)
Definition: ODEcalCycle.h:47
void printout()
Definition: ODEcalCycle.cc:286
int m_cycle_num
Definition: ODEcalCycle.h:82
void setByID(int id) noexcept(false)
Definition: ODEcalCycle.cc:236
std::string m_cycle_tag
Definition: ODEcalCycle.h:83
void setDCCId(int x)
Definition: ODEcalCycle.h:39
int getLTSId() const
Definition: ODEcalCycle.h:46
void prepareWrite() noexcept(false) override
Definition: ODEcalCycle.cc:44
void setVersion(int x)
Definition: ODEcalCycle.h:23
int getTCCId() const
Definition: ODEcalCycle.h:50
std::string getTag() const
Definition: ODEcalCycle.h:22
void setTCCEEId(int x)
Definition: ODEcalCycle.h:51
void setTTCFId(int x)
Definition: ODEcalCycle.h:61
int getTTCCIId() const
Definition: ODEcalCycle.h:54
void setJBH4Id(int x)
Definition: ODEcalCycle.h:57
int getDCCId() const
Definition: ODEcalCycle.h:40
int getLaserId() const
Definition: ODEcalCycle.h:42
void setSRPId(int x)
Definition: ODEcalCycle.h:63
void setTTCCIId(int x)
Definition: ODEcalCycle.h:53
void setCycleTag(std::string x)
Definition: ODEcalCycle.h:33
std::string getCycleDescription() const
Definition: ODEcalCycle.h:36
void setTag(std::string x)
Definition: ODEcalCycle.h:21
void setCCSId(int x)
Definition: ODEcalCycle.h:37
void setTCCId(int x)
Definition: ODEcalCycle.h:49
int getTCCEEId() const
Definition: ODEcalCycle.h:52
void setLTCId(int x)
Definition: ODEcalCycle.h:43
int getSRPId() const
Definition: ODEcalCycle.h:64
void setLTSId(int x)
Definition: ODEcalCycle.h:45
int getId() const
Definition: ODEcalCycle.h:20
#define noexcept
void setMataqId(int x)
Definition: ODEcalCycle.h:55
void setScanId(int x)
Definition: ODEcalCycle.h:59
int getTTCFId() const
Definition: ODEcalCycle.h:62
int getCCSId() const
Definition: ODEcalCycle.h:38
void setCycleNum(int x)
Definition: ODEcalCycle.h:31
int getDCUId() const
Definition: ODEcalCycle.h:48
int getVersion() const
Definition: ODEcalCycle.h:24
std::string m_tag
Definition: ODEcalCycle.h:78
void setSeqNum(int x)
Definition: ODEcalCycle.h:25
void setLaserId(int x)
Definition: ODEcalCycle.h:41
int fetchID() noexcept(false)
Definition: ODEcalCycle.cc:202
int getMataqId() const
Definition: ODEcalCycle.h:56
void setCycleDescription(std::string x)
Definition: ODEcalCycle.h:35
int getLTCId() const
Definition: ODEcalCycle.h:44
int getCycleNum() const
Definition: ODEcalCycle.h:32
int getScanId() const
Definition: ODEcalCycle.h:60
void setId(int id)
Definition: ODEcalCycle.h:19
std::string m_cycle_description
Definition: ODEcalCycle.h:84
void fetchData(ODEcalCycle *result) noexcept(false)
Definition: ODEcalCycle.cc:308