| 12 |
#include <RunHeaderEvent.h> |
#include <RunHeaderEvent.h> |
| 13 |
#include <RunTrailerEvent.h> |
#include <RunTrailerEvent.h> |
| 14 |
#include <sgp4.h> |
#include <sgp4.h> |
| 15 |
|
// |
| 16 |
|
|
| 17 |
using namespace pamela; |
using namespace pamela; |
| 18 |
|
// |
| 19 |
|
|
| 20 |
|
static const TString *fHost; |
| 21 |
|
static const TString *fUser; |
| 22 |
|
static const TString *fPsw; |
| 23 |
|
static UInt_t fNquery; |
| 24 |
|
static Bool_t fSet; |
| 25 |
|
|
| 26 |
|
// ================================================================== |
| 27 |
|
/** |
| 28 |
|
* \brief Class to store GL_RUN data |
| 29 |
|
*/ |
| 30 |
|
class GL_TABLES : public TObject { |
| 31 |
|
private: |
| 32 |
|
|
| 33 |
|
public: |
| 34 |
|
// |
| 35 |
|
GL_TABLES(); |
| 36 |
|
GL_TABLES(TString, TString, TString); |
| 37 |
|
// |
| 38 |
|
void Set(TString, TString, TString); |
| 39 |
|
// |
| 40 |
|
Bool_t IsConnected(TSQLServer *); |
| 41 |
|
// |
| 42 |
|
void ResetCounters(); |
| 43 |
|
void AddQ(); |
| 44 |
|
// |
| 45 |
|
const TString* GetHost(){return(fHost);}; |
| 46 |
|
const TString* GetUser(){return(fUser);}; |
| 47 |
|
const TString* GetPsw(){return(fPsw);}; |
| 48 |
|
UInt_t GetfNquery(){return(fNquery);}; |
| 49 |
|
UInt_t GetNqueries(); |
| 50 |
|
Bool_t IsSet(){return(fSet);}; |
| 51 |
|
// |
| 52 |
|
GL_TABLES *GetGLTABLES(){return this;}; |
| 53 |
|
// |
| 54 |
|
ClassDef(GL_TABLES,1); |
| 55 |
|
}; |
| 56 |
|
|
| 57 |
// ================================================================== |
// ================================================================== |
| 58 |
/** |
/** |
| 59 |
* \brief Class to store GL_RUN data |
* \brief Class to store GL_RUN data |
| 60 |
*/ |
*/ |
| 61 |
class GL_RUN : public TObject { |
//class GL_RUN : public TObject { |
| 62 |
|
class GL_RUN : public GL_TABLES { |
| 63 |
private: |
private: |
| 64 |
|
|
| 65 |
public: |
public: |
| 186 |
/** |
/** |
| 187 |
* \brief Class to store GL_ROOT |
* \brief Class to store GL_ROOT |
| 188 |
*/ |
*/ |
| 189 |
class GL_ROOT : public TObject{ |
class GL_ROOT : public GL_TABLES { |
| 190 |
|
//class GL_ROOT : public TObject{ |
| 191 |
private: |
private: |
| 192 |
|
|
| 193 |
public: |
public: |
| 208 |
/** |
/** |
| 209 |
* \brief Class to store GL_PARAM data |
* \brief Class to store GL_PARAM data |
| 210 |
*/ |
*/ |
| 211 |
class GL_PARAM : public TObject{ |
class GL_PARAM : public GL_TABLES { |
| 212 |
|
//class GL_PARAM : public TObject{ |
| 213 |
private: |
private: |
| 214 |
|
|
| 215 |
public: |
public: |
| 232 |
/** |
/** |
| 233 |
* \brief Class to store GL_TRK_CALIB data |
* \brief Class to store GL_TRK_CALIB data |
| 234 |
*/ |
*/ |
| 235 |
class GL_TRK_CALIB : public TObject{ |
//class GL_TRK_CALIB : public TObject{ |
| 236 |
|
class GL_TRK_CALIB : public GL_TABLES { |
| 237 |
private: |
private: |
| 238 |
|
|
| 239 |
public: |
public: |
| 262 |
/** |
/** |
| 263 |
* \brief Class to store GL_CALO_CALIB data |
* \brief Class to store GL_CALO_CALIB data |
| 264 |
*/ |
*/ |
| 265 |
class GL_CALO_CALIB : public TObject{ |
class GL_CALO_CALIB : public GL_TABLES { |
| 266 |
|
//class GL_CALO_CALIB : public TObject{ |
| 267 |
private: |
private: |
| 268 |
|
|
| 269 |
public: |
public: |
| 285 |
/** |
/** |
| 286 |
* \brief Class to store GL_S4_CALIB data |
* \brief Class to store GL_S4_CALIB data |
| 287 |
*/ |
*/ |
| 288 |
class GL_S4_CALIB : public TObject{ |
class GL_S4_CALIB : public GL_TABLES { |
| 289 |
|
//class GL_S4_CALIB : public TObject{ |
| 290 |
private: |
private: |
| 291 |
|
|
| 292 |
public: |
public: |
| 310 |
/** |
/** |
| 311 |
* \brief Class to store TIMESYNC data |
* \brief Class to store TIMESYNC data |
| 312 |
*/ |
*/ |
| 313 |
class GL_TIMESYNC : public TObject{ |
class GL_TIMESYNC : public GL_TABLES { |
| 314 |
|
//class GL_TIMESYNC : public TObject{ |
| 315 |
private: |
private: |
| 316 |
UInt_t obtfirst; |
UInt_t obtfirst; |
| 317 |
UInt_t pktfirst; |
UInt_t pktfirst; |
| 360 |
* 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 |
| 361 |
* UTC unix time of the next avaible tle. |
* UTC unix time of the next avaible tle. |
| 362 |
*/ |
*/ |
| 363 |
class GL_TLE : public TObject{ |
class GL_TLE : public GL_TABLES { |
| 364 |
|
//class GL_TLE : public TObject{ |
| 365 |
private: |
private: |
| 366 |
Int_t DoQuery(TString query, TSQLServer *dbc); |
Int_t DoQuery(TString query, TSQLServer *dbc); |
| 367 |
cTle* GiveTle(TSQLRow*); |
cTle* GiveTle(TSQLRow*); |