1 |
mocchiut |
1.1 |
#ifndef gltables_h |
2 |
|
|
#define gltables_h |
3 |
|
|
|
4 |
|
|
#include <TString.h> |
5 |
|
|
#include <TObject.h> |
6 |
|
|
#include <TSQLServer.h> |
7 |
|
|
#include <TSQLRow.h> |
8 |
|
|
#include <TSQLResult.h> |
9 |
pam-fi |
1.2 |
#include <GLTablesStruct.h> |
10 |
mocchiut |
1.1 |
// ================================================================== |
11 |
|
|
/** |
12 |
|
|
* \brief Class to store GL_RUN data |
13 |
|
|
*/ |
14 |
|
|
class GL_RUN : public TObject { |
15 |
|
|
private: |
16 |
|
|
|
17 |
|
|
public: |
18 |
|
|
// |
19 |
|
|
ULong64_t ID; |
20 |
|
|
ULong64_t ID_REG_RUN; |
21 |
|
|
ULong64_t ID_REG_RUN_L2; |
22 |
|
|
ULong64_t RUNHEADER_TIME; |
23 |
|
|
ULong64_t RUNTRAILER_TIME; |
24 |
|
|
Int_t EV_REG_PHYS_FROM; |
25 |
|
|
Int_t EV_REG_PHYS_TO; |
26 |
|
|
Int_t EV_REG_RUNHEADER; |
27 |
|
|
Int_t EV_REG_RUNTRAILER; |
28 |
|
|
Int_t TRK_CALIB_USED; |
29 |
|
|
Int_t EFF_WRK_SCHEDULE; |
30 |
|
|
Int_t PRH_VAR_TRG_MODE_A; |
31 |
|
|
Int_t PRH_VAR_TRG_MODE_B; |
32 |
|
|
Int_t ACQ_BUILD_INFO; |
33 |
|
|
Int_t ACQ_VAR_INFO; |
34 |
|
|
|
35 |
|
|
GL_RUN(); |
36 |
|
|
|
37 |
|
|
Int_t Query_GL_RUN(ULong64_t, TSQLServer*); |
38 |
|
|
|
39 |
pam-fi |
1.2 |
void GetLevel2Struct(cGLRun *l2) const; |
40 |
|
|
|
41 |
mocchiut |
1.1 |
ClassDef(GL_RUN,1); |
42 |
|
|
}; |
43 |
|
|
// ================================================================== |
44 |
|
|
/** |
45 |
|
|
* \brief Class to store GL_ROOT |
46 |
|
|
*/ |
47 |
|
|
class GL_ROOT : public TObject{ |
48 |
|
|
private: |
49 |
|
|
|
50 |
|
|
public: |
51 |
|
|
// |
52 |
|
|
ULong64_t ID; |
53 |
|
|
ULong64_t ID_RAW; |
54 |
|
|
TString PATH; |
55 |
|
|
TString NAME; |
56 |
|
|
|
57 |
|
|
GL_ROOT(); |
58 |
|
|
|
59 |
|
|
Int_t Query_GL_ROOT(ULong64_t id, TSQLServer *dbc); |
60 |
|
|
|
61 |
|
|
ClassDef(GL_ROOT,1); |
62 |
|
|
}; |
63 |
|
|
// ================================================================== |
64 |
|
|
/** |
65 |
|
|
* \brief Class to store GL_PARAM data |
66 |
|
|
*/ |
67 |
|
|
class GL_PARAM : public TObject{ |
68 |
|
|
private: |
69 |
|
|
|
70 |
|
|
public: |
71 |
|
|
// |
72 |
|
|
ULong64_t ID; |
73 |
|
|
TString PATH; |
74 |
|
|
TString NAME; |
75 |
|
|
TString DESCR; |
76 |
|
|
ULong64_t FROM_TIME; |
77 |
|
|
ULong64_t TO_TIME; |
78 |
|
|
|
79 |
|
|
GL_PARAM(); |
80 |
|
|
|
81 |
|
|
Int_t Query_GL_PARAM(ULong64_t time, TString descr, TSQLServer *dbc); |
82 |
|
|
|
83 |
|
|
ClassDef(GL_PARAM,1); |
84 |
|
|
}; |
85 |
|
|
// ================================================================== |
86 |
|
|
/** |
87 |
|
|
* \brief Class to store GL_TRK_CALIB data |
88 |
|
|
*/ |
89 |
|
|
class GL_TRK_CALIB : public TObject{ |
90 |
|
|
private: |
91 |
|
|
|
92 |
|
|
public: |
93 |
|
|
// |
94 |
|
|
ULong64_t ID; |
95 |
|
|
ULong64_t ID_REG_CALIBTRK; |
96 |
|
|
Int_t EV_REG_CALIBTRK1 ; |
97 |
|
|
Int_t EV_REG_CALIBTRK2 ; |
98 |
|
|
ULong64_t FROM_TIME; |
99 |
|
|
ULong64_t TO_TIME; |
100 |
|
|
|
101 |
|
|
GL_TRK_CALIB(); |
102 |
|
|
|
103 |
|
|
Int_t Query_GL_TRK_CALIB(ULong64_t time, TSQLServer *dbc); |
104 |
|
|
|
105 |
|
|
ClassDef(GL_TRK_CALIB,1); |
106 |
|
|
}; |
107 |
|
|
|
108 |
|
|
// ================================================================== |
109 |
|
|
/** |
110 |
|
|
* \brief Class to store GL_CALO_CALIB data |
111 |
|
|
*/ |
112 |
|
|
class GL_CALO_CALIB : public TObject{ |
113 |
|
|
private: |
114 |
|
|
|
115 |
|
|
public: |
116 |
|
|
// |
117 |
|
|
ULong64_t ID; |
118 |
|
|
ULong64_t ID_REG_CALIBCALPED; |
119 |
|
|
Int_t EV_REG_CALIBCALPED ; |
120 |
|
|
ULong64_t FROM_TIME; |
121 |
|
|
ULong64_t TO_TIME; |
122 |
|
|
Int_t SECTION; |
123 |
|
|
|
124 |
|
|
GL_CALO_CALIB(); |
125 |
|
|
|
126 |
|
|
Int_t Query_GL_CALO_CALIB(ULong64_t time, Int_t section, TSQLServer *dbc); |
127 |
|
|
|
128 |
|
|
ClassDef(GL_CALO_CALIB,1); |
129 |
|
|
}; |
130 |
|
|
// ================================================================== |
131 |
|
|
/** |
132 |
|
|
* \brief Class to store GL_S4_CALIB data |
133 |
|
|
*/ |
134 |
|
|
class GL_S4_CALIB : public TObject{ |
135 |
|
|
private: |
136 |
|
|
|
137 |
|
|
public: |
138 |
|
|
// |
139 |
|
|
ULong64_t ID; |
140 |
|
|
ULong64_t ID_REG_CALIBS4; |
141 |
|
|
Int_t EV_REG_CALIBS4 ; |
142 |
|
|
ULong64_t FROM_TIME; |
143 |
|
|
ULong64_t TO_TIME; |
144 |
|
|
Double_t PARAM_FIT0; |
145 |
|
|
Double_t PARAM_FIT1; |
146 |
|
|
|
147 |
|
|
GL_S4_CALIB(); |
148 |
|
|
|
149 |
|
|
Int_t Query_GL_S4_CALIB(ULong64_t time, TSQLServer *dbc); |
150 |
|
|
|
151 |
|
|
ClassDef(GL_S4_CALIB,1); |
152 |
|
|
}; |
153 |
|
|
|
154 |
|
|
#endif |