3 |
// |
// |
4 |
#include <TObject.h> |
#include <TObject.h> |
5 |
#include <TTree.h> |
#include <TTree.h> |
6 |
|
#include <TChain.h> |
7 |
#include <TFile.h> |
#include <TFile.h> |
8 |
#include <TArrayL.h> |
#include <TArrayI.h> |
9 |
#include <TSQLServer.h> |
#include <TSQLServer.h> |
10 |
// |
// |
11 |
#include <GLTables.h> |
#include <GLTables.h> |
18 |
private: |
private: |
19 |
|
|
20 |
public: |
public: |
21 |
|
TString DV_ver; |
22 |
|
TString ORB_ver; |
23 |
TString TRIG_ver; |
TString TRIG_ver; |
24 |
TString TOF_ver; |
TString TOF_ver; |
25 |
TString AC_ver; |
TString AC_ver; |
27 |
TString CAL_ver; |
TString CAL_ver; |
28 |
TString S4_ver; |
TString S4_ver; |
29 |
TString ND_ver; |
TString ND_ver; |
|
TString ORB_ver; |
|
30 |
// |
// |
31 |
// Default constructor |
// Default constructor |
32 |
// |
// |
33 |
SoftInfo(); |
SoftInfo(); |
34 |
|
|
35 |
|
void Clear(); |
36 |
void GetLevel2Struct(cSoftInfo *l2) const; |
void GetLevel2Struct(cSoftInfo *l2) const; |
37 |
|
SoftInfo* GetSoftInfo(){return this;}; |
38 |
|
UInt_t GetSWinfo(TString DEC); |
39 |
|
|
40 |
// |
// |
41 |
ClassDef(SoftInfo,1); |
ClassDef(SoftInfo,2); |
42 |
// |
// |
43 |
}; |
}; |
44 |
|
|
45 |
class ItoRunInfo : public GL_RUN { |
class ItoRunInfo : public GL_RUN { |
46 |
|
|
47 |
private: |
private: |
48 |
ULong64_t file_entries; |
UInt_t file_entries; |
49 |
Long64_t totnorun; |
UInt_t totnorun; |
50 |
Int_t first_file_entry; |
Int_t first_file_entry; |
51 |
Int_t last_file_entry; |
Int_t last_file_entry; |
52 |
UInt_t norun; |
UInt_t norun; |
55 |
Bool_t isreadonly; |
Bool_t isreadonly; |
56 |
TFile *file; |
TFile *file; |
57 |
TTree *newtree; |
TTree *newtree; |
58 |
TArrayL *runlist; |
TArrayI *runlist; |
59 |
ULong64_t idRun; |
UInt_t idRun; |
60 |
TSQLServer *dbc; |
TSQLServer *dbc; |
61 |
TString processFolder; |
TString processFolder; |
62 |
TString Detector; |
TString Detector; |
63 |
|
void CopyFromTo(GL_RUN *, GL_RUN *, SoftInfo *, SoftInfo *); |
64 |
|
|
65 |
public: |
public: |
66 |
// |
// |
67 |
SoftInfo *version; |
SoftInfo *version; |
68 |
// |
// |
69 |
|
// GL_RUN *glrun; |
70 |
|
// |
71 |
// Default constructor |
// Default constructor |
72 |
// |
// |
73 |
ItoRunInfo(); |
ItoRunInfo(); |
84 |
// |
// |
85 |
// |
// |
86 |
// |
// |
87 |
Int_t Update(ULong64_t run, TString Detector, TString Version); |
Int_t Update(UInt_t run, TString Detector, TString Version); |
88 |
Int_t Read(ULong64_t run); |
Int_t Read(UInt_t run); |
89 |
Int_t GetRunInfo(ULong64_t run); |
Int_t GetRunInfo(UInt_t run); |
90 |
UInt_t GetRunForEntry(UInt_t entry); |
UInt_t GetRunForEntry(UInt_t entry); |
91 |
void Close(); |
void Close(); |
92 |
void Clear(); |
void Clear(); |
93 |
// |
// |
94 |
Long64_t GetRunEntries(){return(totnorun);}; |
void *GetPointerToSI(){return &version;}; |
95 |
|
void *GetPointerToRI(){return this;}; |
96 |
|
//void *GetPointerToRI(){return &glrun;}; |
97 |
|
TChain *GetRunTree(TList *fl); |
98 |
|
// |
99 |
|
UInt_t GetRunEntries(){return(totnorun);}; |
100 |
UInt_t GetNoRun(){return(norun);}; |
UInt_t GetNoRun(){return(norun);}; |
101 |
TArrayL *GetRunList(){return(runlist);}; |
TArrayI *GetRunList(){return(runlist);}; |
102 |
Bool_t IsReprocessing(){return(reprocessing);}; |
Bool_t IsReprocessing(){return(reprocessing);}; |
103 |
UInt_t GetFirstEntry(){return(first_file_entry);}; |
UInt_t GetFirstEntry(){return(first_file_entry);}; |
104 |
UInt_t GetLastEntry(){return(last_file_entry-1);}; |
UInt_t GetLastEntry(){return(last_file_entry-1);}; |
105 |
ULong64_t GetFileEntries(){return(file_entries);}; |
UInt_t GetEntries(){return(last_file_entry-1-first_file_entry);}; |
106 |
|
UInt_t GetFileEntries(){return(file_entries);}; |
107 |
// |
// |
108 |
ClassDef(ItoRunInfo,1); |
ClassDef(ItoRunInfo,1); |
109 |
// |
// |