| 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> |
| 31 |
// |
// |
| 32 |
SoftInfo(); |
SoftInfo(); |
| 33 |
|
|
| 34 |
|
void Clear(); |
| 35 |
void GetLevel2Struct(cSoftInfo *l2) const; |
void GetLevel2Struct(cSoftInfo *l2) const; |
| 36 |
|
SoftInfo* GetSoftInfo(){return this;}; |
| 37 |
|
|
| 38 |
// |
// |
| 39 |
ClassDef(SoftInfo,1); |
ClassDef(SoftInfo,1); |
| 40 |
// |
// |
| 43 |
class ItoRunInfo : public GL_RUN { |
class ItoRunInfo : public GL_RUN { |
| 44 |
|
|
| 45 |
private: |
private: |
| 46 |
ULong64_t file_entries; |
UInt_t file_entries; |
| 47 |
Long64_t totnorun; |
UInt_t totnorun; |
| 48 |
Int_t first_file_entry; |
Int_t first_file_entry; |
| 49 |
Int_t last_file_entry; |
Int_t last_file_entry; |
| 50 |
UInt_t norun; |
UInt_t norun; |
| 53 |
Bool_t isreadonly; |
Bool_t isreadonly; |
| 54 |
TFile *file; |
TFile *file; |
| 55 |
TTree *newtree; |
TTree *newtree; |
| 56 |
TArrayL *runlist; |
TArrayI *runlist; |
| 57 |
ULong64_t idRun; |
UInt_t idRun; |
| 58 |
TSQLServer *dbc; |
TSQLServer *dbc; |
| 59 |
TString processFolder; |
TString processFolder; |
| 60 |
TString Detector; |
TString Detector; |
| 61 |
|
void CopyFromTo(GL_RUN *, GL_RUN *, SoftInfo *, SoftInfo *); |
| 62 |
|
|
| 63 |
public: |
public: |
| 64 |
// |
// |
| 80 |
// |
// |
| 81 |
// |
// |
| 82 |
// |
// |
| 83 |
Int_t Update(ULong64_t run, TString Detector, TString Version); |
Int_t Update(UInt_t run, TString Detector, TString Version); |
| 84 |
Int_t Read(ULong64_t run); |
Int_t Read(UInt_t run); |
| 85 |
Int_t GetRunInfo(ULong64_t run); |
Int_t GetRunInfo(UInt_t run); |
| 86 |
UInt_t GetRunForEntry(UInt_t entry); |
UInt_t GetRunForEntry(UInt_t entry); |
| 87 |
void Close(); |
void Close(); |
| 88 |
void Clear(); |
void Clear(); |
| 89 |
// |
// |
| 90 |
Long64_t GetRunEntries(){return(totnorun);}; |
void *GetPointerToSI(){return &version;}; |
| 91 |
|
void *GetPointerToRI(){return this;}; |
| 92 |
|
TChain *LoadRunInfoTree(TList *fl); |
| 93 |
|
// |
| 94 |
|
UInt_t GetRunEntries(){return(totnorun);}; |
| 95 |
UInt_t GetNoRun(){return(norun);}; |
UInt_t GetNoRun(){return(norun);}; |
| 96 |
TArrayL *GetRunList(){return(runlist);}; |
TArrayI *GetRunList(){return(runlist);}; |
| 97 |
Bool_t IsReprocessing(){return(reprocessing);}; |
Bool_t IsReprocessing(){return(reprocessing);}; |
| 98 |
UInt_t GetFirstEntry(){return(first_file_entry);}; |
UInt_t GetFirstEntry(){return(first_file_entry);}; |
| 99 |
UInt_t GetLastEntry(){return(last_file_entry-1);}; |
UInt_t GetLastEntry(){return(last_file_entry-1);}; |
| 100 |
UInt_t GetEntries(){return(last_file_entry-1-first_file_entry);}; |
UInt_t GetEntries(){return(last_file_entry-1-first_file_entry);}; |
| 101 |
ULong64_t GetFileEntries(){return(file_entries);}; |
UInt_t GetFileEntries(){return(file_entries);}; |
| 102 |
// |
// |
| 103 |
ClassDef(ItoRunInfo,1); |
ClassDef(ItoRunInfo,1); |
| 104 |
// |
// |