/[PAMELA software]/YodaProfiler/inc/GLTables.h
ViewVC logotype

Contents of /YodaProfiler/inc/GLTables.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Wed Aug 30 11:18:13 2006 UTC (18 years, 3 months ago) by mocchiut
Branch: YodaProfiler
CVS Tags: v0r00, start
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
Error occurred while calculating annotation data.
Imported sources

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 #include <GLTablesStruct.h>
10 #include <EventHeader.h>
11 #include <PscuHeader.h>
12 #include <RunHeaderEvent.h>
13 #include <RunTrailerEvent.h>
14
15 using namespace pamela;
16 // ==================================================================
17 /**
18 * \brief Class to store GL_RUN data
19 */
20 class GL_RUN : public TObject {
21 private:
22
23 public:
24 //
25 UInt_t ID;
26 UInt_t ID_RUN_FRAG;
27 UInt_t ID_ROOT_L0;
28 UInt_t ID_ROOT_L2;
29 UInt_t RUNHEADER_TIME;
30 UInt_t RUNTRAILER_TIME;
31 UInt_t RUNHEADER_OBT;
32 UInt_t RUNTRAILER_OBT;
33 UInt_t RUNHEADER_PKT;
34 UInt_t RUNTRAILER_PKT;
35 UInt_t BOOT_NUMBER;
36 UInt_t EV_FROM;
37 UInt_t EV_TO;
38 UInt_t NEVENTS;
39 UInt_t PKT_COUNTER;
40 UInt_t PKT_READY_COUNTER;
41 UInt_t COMPILATIONTIMESTAMP;
42 UInt_t FAV_WRK_SCHEDULE;
43 UInt_t EFF_WRK_SCHEDULE;
44 UInt_t PRH_VAR_TRG_MODE_A;
45 UInt_t PRH_VAR_TRG_MODE_B;
46 UInt_t ACQ_BUILD_INFO;
47 UInt_t ACQ_VAR_INFO;
48 UInt_t RM_ACQ_AFTER_CALIB;
49 UInt_t RM_ACQ_SETTING_MODE;
50 UInt_t TRK_CALIB_USED;
51 UInt_t CAL_DSP_MASK;
52 UInt_t LAST_TIMESYNC;
53 UInt_t OBT_TIMESYNC;
54 UInt_t VALIDATION;
55 //
56 //
57 //
58 GL_RUN();
59 //
60 // functions
61 //
62 Int_t Query_GL_RUN(UInt_t, TSQLServer*);
63 Int_t Fill_GL_RUN(TSQLServer*);
64 Int_t Query_GL_RUN_FRAGMENTS(TString, TSQLServer*);
65 Int_t Fill_GL_RUN_FRAGMENTS(TSQLServer*);
66 void Clear();
67 //
68 // SETTERS
69 //
70 void Set_GL_RUNT(RunTrailerEvent *runt, PscuHeader *pht);
71 void Set_GL_RUNH(RunHeaderEvent *runt, PscuHeader *pht);
72 void Set_GL_RUNT0();
73 void Set_GL_RUNH0();
74 void SetRUNHEADER_TIME(UInt_t abst);
75 void SetRUNTRAILER_TIME(UInt_t abst);
76 void SetRUNHEADER_PKT(UInt_t abst);
77 void SetRUNTRAILER_PKT(UInt_t abst);
78 void SetRUNHEADER_OBT(UInt_t abst);
79 void SetRUNTRAILER_OBT(UInt_t abst);
80 void SetBOOTNUMBER(UInt_t abst);
81 void SetID(UInt_t);
82 void SetID_ROOT_L2(UInt_t L2);
83 void SetID_ROOT_L0(UInt_t L0);
84 void SetID_RUN_FRAG(UInt_t RUN);
85 void SetVALIDATION(UInt_t valid);
86 void SetEV_FROM(UInt_t evfrom);
87 void SetEV_TO(UInt_t evto);
88 void SetNEVENTS(UInt_t nev);
89 void SetLAST_TIMESYNC(UInt_t ts);
90 void SetOBT_TIMESYNC(UInt_t ts);
91 void SetPKT_COUNTER(UInt_t);
92 void SetPKT_READY_COUNTER(UInt_t);
93 void SetCOMPILATIONTIMESTAMP(UInt_t);
94 void SetFAV_WRK_SCHEDULE(UInt_t);
95 void SetEFF_WRK_SCHEDULE(UInt_t);
96 void SetPRH_VAR_TRG_MODE_A(UInt_t);
97 void SetPRH_VAR_TRG_MODE_B(UInt_t);
98 void SetACQ_BUILD_INFO(UInt_t);
99 void SetACQ_VAR_INFO(UInt_t);
100 void SetRM_ACQ_AFTER_CALIB(UInt_t);
101 void SetRM_ACQ_SETTING_MODE(UInt_t);
102 void SetTRK_CALIB_USED(UInt_t);
103 void SetCAL_DSP_MASK(UInt_t);
104 //
105 // GETTERS
106 //
107 void GetLevel2Struct(cGLRun *l2) const;
108 UInt_t GetRUNHEADER_PKT(){return(RUNHEADER_PKT);};
109 UInt_t GetRUNTRAILER_PKT(){return(RUNTRAILER_PKT);};
110 UInt_t GetRUNHEADER_TIME(){return(RUNHEADER_TIME);};
111 UInt_t GetRUNTRAILER_TIME(){return(RUNTRAILER_TIME);};
112 UInt_t GetRUNHEADER_OBT(){return(RUNHEADER_OBT);};
113 UInt_t GetRUNTRAILER_OBT(){return(RUNTRAILER_OBT);};
114 UInt_t GetNEVENTS(){return(NEVENTS);};
115 UInt_t GetTRK_CALIB(){return(TRK_CALIB_USED);};
116 UInt_t GetPKT_COUNTER(){return(PKT_COUNTER);};
117 UInt_t GetLAST_TIMESYNC(){return(LAST_TIMESYNC);};
118 UInt_t GetOBT_TIMESYNC(){return(OBT_TIMESYNC);};
119 UInt_t GetPKT_READY_COUNTER(){return(PKT_READY_COUNTER);};
120 UInt_t GetCOMPILATIONTIMESTAMP(){return(COMPILATIONTIMESTAMP);};
121 UInt_t GetFAV_WRK_SCHEDULE(){return(FAV_WRK_SCHEDULE);};
122 UInt_t GetEFF_WRK_SCHEDULE(){return(EFF_WRK_SCHEDULE);};
123 UInt_t GetPRH_VAR_TRG_MODE_A(){return(PRH_VAR_TRG_MODE_A);};
124 UInt_t GetPRH_VAR_TRG_MODE_B(){return(PRH_VAR_TRG_MODE_B);};
125 UInt_t GetACQ_BUILD_INFO(){return(ACQ_BUILD_INFO);};
126 UInt_t GetACQ_VAR_INFO(){return(ACQ_VAR_INFO);};
127 UInt_t GetRM_ACQ_AFTER_CALIB(){return(RM_ACQ_AFTER_CALIB);};
128 UInt_t GetRM_ACQ_SETTING_MODE(){return(RM_ACQ_SETTING_MODE);};
129 UInt_t GetTRK_CALIB_USED(){return(TRK_CALIB_USED);};
130 UInt_t GetCAL_DSP_MASK(){return(CAL_DSP_MASK);};
131
132 //
133 ClassDef(GL_RUN,1);
134 };
135
136 // ==================================================================
137 /**
138 * \brief Class to store GL_ROOT
139 */
140 class GL_ROOT : public TObject{
141 private:
142
143 public:
144 //
145 UInt_t ID;
146 UInt_t ID_RAW;
147 UInt_t ID_TIMESYNC;
148 TString PATH;
149 TString NAME;
150
151 GL_ROOT();
152
153 Int_t Query_GL_ROOT(UInt_t id, TSQLServer *dbc);
154
155 ClassDef(GL_ROOT,1);
156 };
157 // ==================================================================
158 /**
159 * \brief Class to store GL_PARAM data
160 */
161 class GL_PARAM : public TObject{
162 private:
163
164 public:
165 //
166 UInt_t ID;
167 TString PATH;
168 TString NAME;
169 UInt_t FROM_TIME;
170 UInt_t TO_TIME;
171 UInt_t TYPE;
172 TString DESCR;
173
174 GL_PARAM();
175
176 Int_t Query_GL_PARAM(UInt_t time, UInt_t type, TSQLServer *dbc);
177
178 ClassDef(GL_PARAM,1);
179 };
180 // ==================================================================
181 /**
182 * \brief Class to store GL_TRK_CALIB data
183 */
184 class GL_TRK_CALIB : public TObject{
185 private:
186
187 public:
188 //
189 UInt_t ID;
190 UInt_t ID_ROOT_L0;
191 UInt_t EV_ROOT_CALIBTRK1 ;
192 UInt_t EV_ROOT_CALIBTRK2 ;
193 UInt_t FROM_TIME;
194 UInt_t TO_TIME;
195 UInt_t OBT1;
196 UInt_t OBT2;
197 UInt_t PKT1;
198 UInt_t PKT2;
199
200 GL_TRK_CALIB();
201
202 Int_t Query_GL_TRK_CALIB(UInt_t time, TSQLServer *dbc);
203
204 ClassDef(GL_TRK_CALIB,1);
205 };
206
207 // ==================================================================
208 /**
209 * \brief Class to store GL_CALO_CALIB data
210 */
211 class GL_CALO_CALIB : public TObject{
212 private:
213
214 public:
215 //
216 UInt_t ID;
217 UInt_t ID_ROOT_L0;
218 UInt_t EV_ROOT;
219 UInt_t FROM_TIME;
220 UInt_t TO_TIME;
221 UInt_t SECTION;
222
223 GL_CALO_CALIB();
224
225 Int_t Query_GL_CALO_CALIB(UInt_t time, UInt_t section, TSQLServer *dbc);
226
227 ClassDef(GL_CALO_CALIB,1);
228 };
229 // ==================================================================
230 /**
231 * \brief Class to store GL_S4_CALIB data
232 */
233 class GL_S4_CALIB : public TObject{
234 private:
235
236 public:
237 //
238 UInt_t ID;
239 UInt_t ID_ROOT_L0;
240 UInt_t EV_ROOT;
241 UInt_t FROM_TIME;
242 UInt_t TO_TIME;
243 Float_t PARAM_FIT0;
244 Float_t PARAM_FIT1;
245
246 GL_S4_CALIB();
247
248 Int_t Query_GL_S4_CALIB(UInt_t time, TSQLServer *dbc);
249
250 ClassDef(GL_S4_CALIB,1);
251 };
252
253 // ==================================================================
254 /**
255 * \brief Class to store TIMESYNC data
256 */
257 class GL_TIMESYNC : public TObject{
258 private:
259 UInt_t obtfirst;
260 UInt_t pktfirst;
261 UInt_t toffset;
262 //
263 UInt_t ID;
264 UInt_t ID_RAW;
265 UInt_t OBT0;
266 UInt_t TIMESYNC;
267 UInt_t TYPE;
268
269 public:
270 //
271 GL_TIMESYNC();
272 GL_TIMESYNC(UInt_t ID, TString TYPE, TSQLServer *dbc);
273 //
274 UInt_t DBabsTime(UInt_t OBT);
275 //
276 UInt_t DBpkt(UInt_t PKT);
277 ULong64_t DBobt(UInt_t OBT);
278 //
279
280
281
282 ClassDef(GL_TIMESYNC,1);
283 };
284
285 #endif

  ViewVC Help
Powered by ViewVC 1.1.23