1 |
mocchiut |
1.1 |
#ifndef RunInfo_h |
2 |
|
|
#define RunInfo_h |
3 |
|
|
// |
4 |
|
|
#include <TObject.h> |
5 |
|
|
#include <TTree.h> |
6 |
|
|
#include <TFile.h> |
7 |
|
|
#include <TArrayL.h> |
8 |
|
|
#include <TSQLServer.h> |
9 |
|
|
// |
10 |
|
|
#include <GLTables.h> |
11 |
|
|
// |
12 |
|
|
|
13 |
|
|
class SoftInfo : public TObject { |
14 |
|
|
|
15 |
|
|
private: |
16 |
|
|
|
17 |
|
|
public: |
18 |
|
|
TString TRIG_ver; |
19 |
|
|
TString TOF_ver; |
20 |
|
|
TString AC_ver; |
21 |
|
|
TString TRK_ver; |
22 |
|
|
TString CAL_ver; |
23 |
|
|
TString S4_ver; |
24 |
|
|
TString ND_ver; |
25 |
|
|
TString ORB_ver; |
26 |
|
|
// |
27 |
|
|
// Default constructor |
28 |
|
|
// |
29 |
|
|
SoftInfo(); |
30 |
|
|
// |
31 |
|
|
ClassDef(SoftInfo,1); |
32 |
|
|
// |
33 |
|
|
}; |
34 |
|
|
|
35 |
|
|
class ItoRunInfo : public GL_RUN { |
36 |
|
|
|
37 |
|
|
private: |
38 |
|
|
ULong64_t file_entries; |
39 |
|
|
Long64_t totnorun; |
40 |
|
|
Int_t first_file_entry; |
41 |
|
|
Int_t last_file_entry; |
42 |
|
|
UInt_t norun; |
43 |
|
|
Bool_t reprocessing; |
44 |
|
|
Bool_t updating; |
45 |
|
|
Bool_t isreadonly; |
46 |
|
|
TFile *file; |
47 |
|
|
TTree *newtree; |
48 |
|
|
TArrayL *runlist; |
49 |
|
|
ULong64_t idRun; |
50 |
|
|
TSQLServer *dbc; |
51 |
|
|
TString processFolder; |
52 |
|
|
TString Detector; |
53 |
|
|
|
54 |
|
|
public: |
55 |
|
|
// |
56 |
|
|
SoftInfo *version; |
57 |
|
|
// |
58 |
|
|
// Default constructor |
59 |
|
|
// |
60 |
|
|
ItoRunInfo(); |
61 |
|
|
// |
62 |
|
|
// Other constructors... |
63 |
|
|
// |
64 |
|
|
// ... for updating GL_RUN informations by RunInfo exec |
65 |
|
|
// |
66 |
|
|
ItoRunInfo(TSQLServer *db, TFile *processFl, TString processFld); |
67 |
|
|
// |
68 |
|
|
// ... for updating versioning informations by programs and to read only data |
69 |
|
|
// |
70 |
|
|
ItoRunInfo(TFile *processFile); |
71 |
|
|
// |
72 |
|
|
// |
73 |
|
|
// |
74 |
|
|
Int_t Update(ULong64_t run, TString Detector, TString Version); |
75 |
|
|
Int_t Read(ULong64_t run); |
76 |
|
|
Int_t GetRunInfo(ULong64_t run); |
77 |
|
|
UInt_t GetRunForEntry(UInt_t entry); |
78 |
|
|
void Close(); |
79 |
|
|
void Clear(); |
80 |
|
|
// |
81 |
|
|
Long64_t GetRunEntries(){return(totnorun);}; |
82 |
|
|
UInt_t GetNoRun(){return(norun);}; |
83 |
|
|
TArrayL *GetRunList(){return(runlist);}; |
84 |
|
|
Bool_t IsReprocessing(){return(reprocessing);}; |
85 |
|
|
UInt_t GetFirstEntry(){return(first_file_entry);}; |
86 |
|
|
UInt_t GetLastEntry(){return(last_file_entry-1);}; |
87 |
|
|
ULong64_t GetFileEntries(){return(file_entries);}; |
88 |
|
|
// |
89 |
|
|
ClassDef(ItoRunInfo,1); |
90 |
|
|
// |
91 |
|
|
}; |
92 |
|
|
|
93 |
|
|
#endif |
94 |
|
|
|