6 |
#include <TSQLServer.h> |
#include <TSQLServer.h> |
7 |
#include <TSQLRow.h> |
#include <TSQLRow.h> |
8 |
#include <TSQLResult.h> |
#include <TSQLResult.h> |
9 |
|
#include <TSystem.h> |
10 |
#include <GLTablesStruct.h> |
#include <GLTablesStruct.h> |
11 |
#include <EventHeader.h> |
#include <EventHeader.h> |
12 |
#include <PscuHeader.h> |
#include <PscuHeader.h> |
13 |
#include <RunHeaderEvent.h> |
#include <RunHeaderEvent.h> |
14 |
#include <RunTrailerEvent.h> |
#include <RunTrailerEvent.h> |
15 |
#include <sgp4.h> |
#include <sgp4.h> |
16 |
|
// |
17 |
|
|
18 |
using namespace pamela; |
using namespace pamela; |
19 |
|
// |
20 |
|
|
21 |
|
static const TString *fHost; |
22 |
|
static const TString *fUser; |
23 |
|
static const TString *fPsw; |
24 |
|
static UInt_t fNquery; |
25 |
|
static Bool_t fSet; |
26 |
|
|
27 |
|
// ================================================================== |
28 |
|
/** |
29 |
|
* \brief Class to store GL_RUN data |
30 |
|
*/ |
31 |
|
class GL_TABLES : public TObject { |
32 |
|
private: |
33 |
|
|
34 |
|
public: |
35 |
|
// |
36 |
|
GL_TABLES(); |
37 |
|
GL_TABLES(TString, TString, TString); |
38 |
|
// |
39 |
|
void Set(TString, TString, TString); |
40 |
|
// |
41 |
|
Bool_t IsConnected(TSQLServer *&); |
42 |
|
// |
43 |
|
void ResetCounters(); |
44 |
|
void AddQ(); |
45 |
|
// |
46 |
|
const TString* GetHost(){return(fHost);}; |
47 |
|
const TString* GetUser(){return(fUser);}; |
48 |
|
const TString* GetPsw(){return(fPsw);}; |
49 |
|
UInt_t GetfNquery(){return(fNquery);}; |
50 |
|
UInt_t GetNqueries(); |
51 |
|
Bool_t IsSet(){return(fSet);}; |
52 |
|
// |
53 |
|
GL_TABLES *GetGLTABLES(){return this;}; |
54 |
|
// |
55 |
|
ClassDef(GL_TABLES,1); |
56 |
|
}; |
57 |
|
|
58 |
// ================================================================== |
// ================================================================== |
59 |
/** |
/** |
60 |
* \brief Class to store GL_RUN data |
* \brief Class to store GL_RUN data |
61 |
*/ |
*/ |
62 |
class GL_RUN : public TObject { |
//class GL_RUN : public TObject { |
63 |
|
class GL_RUN : public GL_TABLES { |
64 |
private: |
private: |
65 |
|
|
66 |
public: |
public: |
178 |
UInt_t GetRM_ACQ_SETTING_MODE(){return(RM_ACQ_SETTING_MODE);}; |
UInt_t GetRM_ACQ_SETTING_MODE(){return(RM_ACQ_SETTING_MODE);}; |
179 |
UInt_t GetTRK_CALIB_USED(){return(TRK_CALIB_USED);}; |
UInt_t GetTRK_CALIB_USED(){return(TRK_CALIB_USED);}; |
180 |
UInt_t GetCAL_DSP_MASK(){return(CAL_DSP_MASK);}; |
UInt_t GetCAL_DSP_MASK(){return(CAL_DSP_MASK);}; |
181 |
|
// |
182 |
|
GL_RUN* GetGL_RUN(){return this;}; |
183 |
// |
// |
184 |
ClassDef(GL_RUN,1); |
ClassDef(GL_RUN,1); |
185 |
}; |
}; |
188 |
/** |
/** |
189 |
* \brief Class to store GL_ROOT |
* \brief Class to store GL_ROOT |
190 |
*/ |
*/ |
191 |
class GL_ROOT : public TObject{ |
class GL_ROOT : public GL_TABLES { |
192 |
|
//class GL_ROOT : public TObject{ |
193 |
private: |
private: |
194 |
|
|
195 |
public: |
public: |
210 |
/** |
/** |
211 |
* \brief Class to store GL_PARAM data |
* \brief Class to store GL_PARAM data |
212 |
*/ |
*/ |
213 |
class GL_PARAM : public TObject{ |
class GL_PARAM : public GL_TABLES { |
214 |
|
//class GL_PARAM : public TObject{ |
215 |
private: |
private: |
216 |
|
|
217 |
public: |
public: |
234 |
/** |
/** |
235 |
* \brief Class to store GL_TRK_CALIB data |
* \brief Class to store GL_TRK_CALIB data |
236 |
*/ |
*/ |
237 |
class GL_TRK_CALIB : public TObject{ |
//class GL_TRK_CALIB : public TObject{ |
238 |
|
class GL_TRK_CALIB : public GL_TABLES { |
239 |
private: |
private: |
240 |
|
|
241 |
public: |
public: |
264 |
/** |
/** |
265 |
* \brief Class to store GL_CALO_CALIB data |
* \brief Class to store GL_CALO_CALIB data |
266 |
*/ |
*/ |
267 |
class GL_CALO_CALIB : public TObject{ |
class GL_CALO_CALIB : public GL_TABLES { |
268 |
|
//class GL_CALO_CALIB : public TObject{ |
269 |
private: |
private: |
270 |
|
|
271 |
public: |
public: |
287 |
/** |
/** |
288 |
* \brief Class to store GL_S4_CALIB data |
* \brief Class to store GL_S4_CALIB data |
289 |
*/ |
*/ |
290 |
class GL_S4_CALIB : public TObject{ |
class GL_S4_CALIB : public GL_TABLES { |
291 |
|
//class GL_S4_CALIB : public TObject{ |
292 |
private: |
private: |
293 |
|
|
294 |
public: |
public: |
312 |
/** |
/** |
313 |
* \brief Class to store TIMESYNC data |
* \brief Class to store TIMESYNC data |
314 |
*/ |
*/ |
315 |
class GL_TIMESYNC : public TObject{ |
class GL_TIMESYNC : public GL_TABLES { |
316 |
|
//class GL_TIMESYNC : public TObject{ |
317 |
private: |
private: |
318 |
UInt_t obtfirst; |
UInt_t obtfirst; |
319 |
UInt_t pktfirst; |
UInt_t pktfirst; |
362 |
* tleFromTime to the UTC unix time of the tle and tleToTime to the |
* tleFromTime to the UTC unix time of the tle and tleToTime to the |
363 |
* UTC unix time of the next avaible tle. |
* UTC unix time of the next avaible tle. |
364 |
*/ |
*/ |
365 |
class GL_TLE : public TObject{ |
class GL_TLE : public GL_TABLES { |
366 |
|
//class GL_TLE : public TObject{ |
367 |
private: |
private: |
368 |
Int_t DoQuery(TString query, TSQLServer *dbc); |
Int_t DoQuery(TString query, TSQLServer *dbc); |
369 |
cTle* GiveTle(TSQLRow*); |
cTle* GiveTle(TSQLRow*); |