--- DarthVader/RunInfo/inc/RunInfo.h 2006/08/04 13:09:50 1.3 +++ DarthVader/RunInfo/inc/RunInfo.h 2006/11/02 12:32:58 1.5 @@ -3,8 +3,9 @@ // #include #include +#include #include -#include +#include #include // #include @@ -30,7 +31,10 @@ // SoftInfo(); + void Clear(); void GetLevel2Struct(cSoftInfo *l2) const; + SoftInfo* GetSoftInfo(){return this;}; + // ClassDef(SoftInfo,1); // @@ -39,8 +43,8 @@ class ItoRunInfo : public GL_RUN { private: - ULong64_t file_entries; - Long64_t totnorun; + UInt_t file_entries; + UInt_t totnorun; Int_t first_file_entry; Int_t last_file_entry; UInt_t norun; @@ -49,16 +53,19 @@ Bool_t isreadonly; TFile *file; TTree *newtree; - TArrayL *runlist; - ULong64_t idRun; + TArrayI *runlist; + UInt_t idRun; TSQLServer *dbc; TString processFolder; TString Detector; + void CopyFromTo(GL_RUN *, GL_RUN *, SoftInfo *, SoftInfo *); public: // SoftInfo *version; // + // GL_RUN *glrun; + // // Default constructor // ItoRunInfo(); @@ -75,21 +82,26 @@ // // // - Int_t Update(ULong64_t run, TString Detector, TString Version); - Int_t Read(ULong64_t run); - Int_t GetRunInfo(ULong64_t run); + Int_t Update(UInt_t run, TString Detector, TString Version); + Int_t Read(UInt_t run); + Int_t GetRunInfo(UInt_t run); UInt_t GetRunForEntry(UInt_t entry); void Close(); void Clear(); // - Long64_t GetRunEntries(){return(totnorun);}; + void *GetPointerToSI(){return &version;}; + void *GetPointerToRI(){return this;}; + //void *GetPointerToRI(){return &glrun;}; + TChain *LoadRunInfoTree(TList *fl); + // + UInt_t GetRunEntries(){return(totnorun);}; UInt_t GetNoRun(){return(norun);}; - TArrayL *GetRunList(){return(runlist);}; + TArrayI *GetRunList(){return(runlist);}; Bool_t IsReprocessing(){return(reprocessing);}; UInt_t GetFirstEntry(){return(first_file_entry);}; UInt_t GetLastEntry(){return(last_file_entry-1);}; UInt_t GetEntries(){return(last_file_entry-1-first_file_entry);}; - ULong64_t GetFileEntries(){return(file_entries);}; + UInt_t GetFileEntries(){return(file_entries);}; // ClassDef(ItoRunInfo,1); //