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