CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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();
15 
16  // User data methods
17  inline std::string getTable() { 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() throw(std::runtime_error);
70  void writeDB() throw(std::runtime_error);
71  void clear();
72  int fetchID() throw(std::runtime_error);
73  void setByID(int id) throw(std::runtime_error);
74  void fetchData(ODEcalCycle * result) throw(std::runtime_error);
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;
84  std::string m_cycle_description;
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
void prepareWrite()
Definition: ODEcalCycle.cc:44
int getSeqNum() const
Definition: ODEcalCycle.h:26
std::string getCycleTag() const
Definition: ODEcalCycle.h:34
int getJBH4Id() const
Definition: ODEcalCycle.h:58
void clear()
Definition: ODEcalCycle.cc:179
int getSequenceId() const
Definition: ODEcalCycle.h:29
void fetchData(ODEcalCycle *result)
Definition: ODEcalCycle.cc:308
void setDCUId(int x)
Definition: ODEcalCycle.h:47
void printout()
Definition: ODEcalCycle.cc:286
int m_cycle_num
Definition: ODEcalCycle.h:82
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 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
void writeDB()
Definition: ODEcalCycle.cc:54
int getLaserId() const
Definition: ODEcalCycle.h:42
void setSRPId(int x)
Definition: ODEcalCycle.h:63
std::string getTable()
Definition: ODEcalCycle.h:17
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
tuple result
Definition: query.py:137
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
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 getMataqId() const
Definition: ODEcalCycle.h:56
void setCycleDescription(std::string x)
Definition: ODEcalCycle.h:35
int getLTCId() const
Definition: ODEcalCycle.h:44
void setByID(int id)
Definition: ODEcalCycle.cc:236
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