| 6 |
#include <TSQLServer.h> |
#include <TSQLServer.h> |
| 7 |
#include <TSQLRow.h> |
#include <TSQLRow.h> |
| 8 |
#include <TSQLResult.h> |
#include <TSQLResult.h> |
| 9 |
|
#include <TCanvas.h> |
| 10 |
|
#include <TDirectory.h> |
| 11 |
|
#include <TH1D.h> |
| 12 |
|
#include <TH2D.h> |
| 13 |
#include <TSystem.h> |
#include <TSystem.h> |
| 14 |
#include <GLTablesStruct.h> |
#include <GLTablesStruct.h> |
| 15 |
#include <EventHeader.h> |
#include <EventHeader.h> |
| 37 |
|
|
| 38 |
public: |
public: |
| 39 |
// |
// |
| 40 |
TString mh; |
TString mh; //! |
| 41 |
TString mp; |
TString mp; //! |
| 42 |
TString mu; |
TString mu; //! |
| 43 |
GL_TABLES(); |
GL_TABLES(); |
| 44 |
GL_TABLES(TString, TString, TString); |
GL_TABLES(TString, TString, TString); |
| 45 |
// |
// |
| 46 |
void Set(TString, TString, TString); |
void Set(TString, TString, TString); |
| 47 |
// |
// |
| 48 |
Bool_t IsConnected(TSQLServer *&); |
// Bool_t IsConnected(TSQLServer *&); |
| 49 |
|
Bool_t IsConnected(TSQLServer *); |
| 50 |
// |
// |
| 51 |
void ResetCounters(); |
void ResetCounters(); |
| 52 |
void AddQ(); |
void AddQ(); |
| 63 |
// |
// |
| 64 |
GL_TABLES *GetGLTABLES(){return this;}; |
GL_TABLES *GetGLTABLES(){return this;}; |
| 65 |
// |
// |
| 66 |
ClassDef(GL_TABLES,2); |
ClassDef(GL_TABLES,0); // 2 |
| 67 |
}; |
}; |
| 68 |
|
|
| 69 |
// ================================================================== |
// ================================================================== |
| 70 |
|
class Q2TH : public TObject { |
| 71 |
|
private: |
| 72 |
|
TSQLServer *dbc; |
| 73 |
|
TSQLResult *pResult; |
| 74 |
|
TSQLRow *Row; |
| 75 |
|
TString fh; |
| 76 |
|
TString fp; |
| 77 |
|
TString fu; |
| 78 |
|
|
| 79 |
|
public: |
| 80 |
|
|
| 81 |
|
Q2TH(TString h="$PAM_DBHOST", TString u="$PAM_DBUSER", TString p="$PAM_DBPSW"); |
| 82 |
|
|
| 83 |
|
TObject *Draw(TString query, Bool_t verbose = false, TString hname="q2th"); |
| 84 |
|
|
| 85 |
|
ClassDef(Q2TH,1); // 2 |
| 86 |
|
|
| 87 |
|
}; |
| 88 |
|
|
| 89 |
/** |
/** |
| 90 |
* \brief Class to store GL_RUN data |
* \brief Class to store GL_RUN data |
| 91 |
*/ |
*/ |
| 124 |
UInt_t CAL_DSP_MASK; |
UInt_t CAL_DSP_MASK; |
| 125 |
UInt_t LAST_TIMESYNC; |
UInt_t LAST_TIMESYNC; |
| 126 |
UInt_t OBT_TIMESYNC; |
UInt_t OBT_TIMESYNC; |
| 127 |
|
UInt_t PHYSENDRUN_MASK_S3S2S12; |
| 128 |
|
UInt_t PHYSENDRUN_MASK_S11CRC; |
| 129 |
UInt_t VALIDATION; |
UInt_t VALIDATION; |
| 130 |
// |
// |
| 131 |
// |
// |
| 181 |
void SetRM_ACQ_SETTING_MODE(UInt_t); |
void SetRM_ACQ_SETTING_MODE(UInt_t); |
| 182 |
void SetTRK_CALIB_USED(UInt_t); |
void SetTRK_CALIB_USED(UInt_t); |
| 183 |
void SetCAL_DSP_MASK(UInt_t); |
void SetCAL_DSP_MASK(UInt_t); |
| 184 |
|
void SetPHYSENDRUN_MASK_S3S2S12(UInt_t); |
| 185 |
|
void SetPHYSENDRUN_MASK_S11CRC(UInt_t); |
| 186 |
// |
// |
| 187 |
// GETTERS |
// GETTERS |
| 188 |
// |
// |
| 212 |
UInt_t GetRM_ACQ_SETTING_MODE(){return(RM_ACQ_SETTING_MODE);}; |
UInt_t GetRM_ACQ_SETTING_MODE(){return(RM_ACQ_SETTING_MODE);}; |
| 213 |
UInt_t GetTRK_CALIB_USED(){return(TRK_CALIB_USED);}; |
UInt_t GetTRK_CALIB_USED(){return(TRK_CALIB_USED);}; |
| 214 |
UInt_t GetCAL_DSP_MASK(){return(CAL_DSP_MASK);}; |
UInt_t GetCAL_DSP_MASK(){return(CAL_DSP_MASK);}; |
| 215 |
|
UInt_t GetPHYSENDRUN_MASK_S3S2S12(){return (PHYSENDRUN_MASK_S3S2S12);}; |
| 216 |
|
UInt_t GetPHYSENDRUN_MASK_S11CRC(){return (PHYSENDRUN_MASK_S11CRC);}; |
| 217 |
// |
// |
| 218 |
GL_RUN* GetGL_RUN(){return this;}; |
GL_RUN* GetGL_RUN(){return this;}; |
| 219 |
// |
// |
| 220 |
ClassDef(GL_RUN,1); |
ClassDef(GL_RUN,2); |
| 221 |
}; |
}; |
| 222 |
|
|
| 223 |
// ================================================================== |
// ================================================================== |
| 244 |
}; |
}; |
| 245 |
// ================================================================== |
// ================================================================== |
| 246 |
/** |
/** |
| 247 |
|
* \brief Class to store GL_RAW |
| 248 |
|
*/ |
| 249 |
|
class GL_RAW : public GL_TABLES { |
| 250 |
|
//class GL_ROOT : public TObject{ |
| 251 |
|
private: |
| 252 |
|
|
| 253 |
|
public: |
| 254 |
|
// |
| 255 |
|
UInt_t ID; |
| 256 |
|
TString PATH; |
| 257 |
|
TString NAME; |
| 258 |
|
UInt_t BOOT_NUMBER; |
| 259 |
|
|
| 260 |
|
GL_RAW(); |
| 261 |
|
|
| 262 |
|
// Int_t Query_GL_RAW(UInt_t id, TSQLServer *dbc); |
| 263 |
|
|
| 264 |
|
ClassDef(GL_RAW,1); |
| 265 |
|
}; |
| 266 |
|
// ================================================================== |
| 267 |
|
/** |
| 268 |
* \brief Class to store GL_PARAM data |
* \brief Class to store GL_PARAM data |
| 269 |
*/ |
*/ |
| 270 |
class GL_PARAM : public GL_TABLES { |
class GL_PARAM : public GL_TABLES { |
| 307 |
UInt_t OBT2; |
UInt_t OBT2; |
| 308 |
UInt_t PKT1; |
UInt_t PKT1; |
| 309 |
UInt_t PKT2; |
UInt_t PKT2; |
| 310 |
UInt_t BOOT_NUMBER; |
UInt_t BOOT_NUMBER; |
| 311 |
UInt_t VALIDATION; |
UInt_t VALIDATION; |
| 312 |
|
|
| 313 |
GL_TRK_CALIB(); |
GL_TRK_CALIB(); |
| 314 |
|
|
| 422 |
// |
// |
| 423 |
GL_TIMESYNC(); |
GL_TIMESYNC(); |
| 424 |
GL_TIMESYNC(UInt_t ID, TString TYPE, TSQLServer *dbc); |
GL_TIMESYNC(UInt_t ID, TString TYPE, TSQLServer *dbc); |
| 425 |
|
GL_TIMESYNC(UInt_t ID, TString TYPE, TSQLServer *dbc, Bool_t usel0file); |
| 426 |
// |
// |
| 427 |
UInt_t DBabsTime(UInt_t OBT); |
UInt_t DBabsTime(UInt_t OBT); |
| 428 |
UInt_t ResursTime(UInt_t OBT); |
UInt_t ResursTime(UInt_t OBT); |