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 <TH1D.h> |
11 |
|
#include <TH2D.h> |
12 |
#include <TSystem.h> |
#include <TSystem.h> |
13 |
#include <GLTablesStruct.h> |
#include <GLTablesStruct.h> |
14 |
#include <EventHeader.h> |
#include <EventHeader.h> |
36 |
|
|
37 |
public: |
public: |
38 |
// |
// |
39 |
TString mh; |
TString mh; //! |
40 |
TString mp; |
TString mp; //! |
41 |
TString mu; |
TString mu; //! |
42 |
GL_TABLES(); |
GL_TABLES(); |
43 |
GL_TABLES(TString, TString, TString); |
GL_TABLES(TString, TString, TString); |
44 |
// |
// |
45 |
void Set(TString, TString, TString); |
void Set(TString, TString, TString); |
46 |
// |
// |
47 |
Bool_t IsConnected(TSQLServer *&); |
// Bool_t IsConnected(TSQLServer *&); |
48 |
|
Bool_t IsConnected(TSQLServer *); |
49 |
// |
// |
50 |
void ResetCounters(); |
void ResetCounters(); |
51 |
void AddQ(); |
void AddQ(); |
62 |
// |
// |
63 |
GL_TABLES *GetGLTABLES(){return this;}; |
GL_TABLES *GetGLTABLES(){return this;}; |
64 |
// |
// |
65 |
ClassDef(GL_TABLES,2); |
ClassDef(GL_TABLES,0); // 2 |
66 |
}; |
}; |
67 |
|
|
68 |
// ================================================================== |
// ================================================================== |
69 |
|
class Q2TH : public TObject { |
70 |
|
private: |
71 |
|
TSQLServer *dbc; |
72 |
|
TSQLResult *pResult; |
73 |
|
TSQLRow *Row; |
74 |
|
TString fh; |
75 |
|
TString fp; |
76 |
|
TString fu; |
77 |
|
|
78 |
|
public: |
79 |
|
|
80 |
|
Q2TH(TString h="$PAM_DBHOST", TString u="$PAM_DBUSER", TString p="$PAM_DBPSW"); |
81 |
|
|
82 |
|
TObject *Draw(TString query, Bool_t verbose = false, TString hname="q2th"); |
83 |
|
|
84 |
|
ClassDef(Q2TH,1); // 2 |
85 |
|
|
86 |
|
}; |
87 |
|
|
88 |
/** |
/** |
89 |
* \brief Class to store GL_RUN data |
* \brief Class to store GL_RUN data |
243 |
}; |
}; |
244 |
// ================================================================== |
// ================================================================== |
245 |
/** |
/** |
246 |
|
* \brief Class to store GL_RAW |
247 |
|
*/ |
248 |
|
class GL_RAW : public GL_TABLES { |
249 |
|
//class GL_ROOT : public TObject{ |
250 |
|
private: |
251 |
|
|
252 |
|
public: |
253 |
|
// |
254 |
|
UInt_t ID; |
255 |
|
TString PATH; |
256 |
|
TString NAME; |
257 |
|
UInt_t BOOT_NUMBER; |
258 |
|
|
259 |
|
GL_RAW(); |
260 |
|
|
261 |
|
// Int_t Query_GL_RAW(UInt_t id, TSQLServer *dbc); |
262 |
|
|
263 |
|
ClassDef(GL_RAW,1); |
264 |
|
}; |
265 |
|
// ================================================================== |
266 |
|
/** |
267 |
* \brief Class to store GL_PARAM data |
* \brief Class to store GL_PARAM data |
268 |
*/ |
*/ |
269 |
class GL_PARAM : public GL_TABLES { |
class GL_PARAM : public GL_TABLES { |
306 |
UInt_t OBT2; |
UInt_t OBT2; |
307 |
UInt_t PKT1; |
UInt_t PKT1; |
308 |
UInt_t PKT2; |
UInt_t PKT2; |
309 |
UInt_t BOOT_NUMBER; |
UInt_t BOOT_NUMBER; |
310 |
UInt_t VALIDATION; |
UInt_t VALIDATION; |
311 |
|
|
312 |
GL_TRK_CALIB(); |
GL_TRK_CALIB(); |
313 |
|
|
421 |
// |
// |
422 |
GL_TIMESYNC(); |
GL_TIMESYNC(); |
423 |
GL_TIMESYNC(UInt_t ID, TString TYPE, TSQLServer *dbc); |
GL_TIMESYNC(UInt_t ID, TString TYPE, TSQLServer *dbc); |
424 |
|
GL_TIMESYNC(UInt_t ID, TString TYPE, TSQLServer *dbc, Bool_t usel0file); |
425 |
// |
// |
426 |
UInt_t DBabsTime(UInt_t OBT); |
UInt_t DBabsTime(UInt_t OBT); |
427 |
UInt_t ResursTime(UInt_t OBT); |
UInt_t ResursTime(UInt_t OBT); |