| 12 | 
 // | 
 // | 
| 13 | 
 #include <RunInfoStruct.h> | 
 #include <RunInfoStruct.h> | 
| 14 | 
  | 
  | 
| 15 | 
  | 
 class ProcInfo : public TObject { | 
| 16 | 
  | 
  | 
| 17 | 
  | 
  private: | 
| 18 | 
  | 
      | 
| 19 | 
  | 
  public: | 
| 20 | 
  | 
     UInt_t runID; ///< ID of the processed run (input from DV) | 
| 21 | 
  | 
     TString date; ///< processing date and time | 
| 22 | 
  | 
     TString commandLine; ///< input command line | 
| 23 | 
  | 
     TString outputFilename; ///< output filename | 
| 24 | 
  | 
     TString localDir; ///< workiing directory | 
| 25 | 
  | 
     TString uname; ///< local machine and arch (output of "uname -a") | 
| 26 | 
  | 
     TString DB; ///< database used for this processing | 
| 27 | 
  | 
     // | 
| 28 | 
  | 
     // Default constructor | 
| 29 | 
  | 
     // | 
| 30 | 
  | 
     ProcInfo(); | 
| 31 | 
  | 
  | 
| 32 | 
  | 
     void Clear(Option_t *t=""); | 
| 33 | 
  | 
     ProcInfo* GetProcInfo(){return this;};   | 
| 34 | 
  | 
     // | 
| 35 | 
  | 
     ClassDef(ProcInfo,1); | 
| 36 | 
  | 
     // | 
| 37 | 
  | 
 }; | 
| 38 | 
  | 
  | 
| 39 | 
 class SoftInfo : public TObject { | 
 class SoftInfo : public TObject { | 
| 40 | 
  | 
  | 
| 41 | 
  private: | 
  private: | 
| 42 | 
      | 
      | 
| 43 | 
  public: | 
  public: | 
| 44 | 
  | 
     TString DV_ver; | 
| 45 | 
  | 
     TString ORB_ver; | 
| 46 | 
     TString TRIG_ver; | 
     TString TRIG_ver; | 
| 47 | 
     TString TOF_ver; | 
     TString TOF_ver; | 
| 48 | 
     TString AC_ver; | 
     TString AC_ver; | 
| 50 | 
     TString CAL_ver; | 
     TString CAL_ver; | 
| 51 | 
     TString S4_ver; | 
     TString S4_ver; | 
| 52 | 
     TString ND_ver; | 
     TString ND_ver; | 
 | 
     TString ORB_ver; | 
  | 
| 53 | 
     // | 
     // | 
| 54 | 
     // Default constructor | 
     // Default constructor | 
| 55 | 
     // | 
     // | 
| 56 | 
     SoftInfo(); | 
     SoftInfo(); | 
| 57 | 
  | 
  | 
| 58 | 
     void Clear(); | 
     void Clear(Option_t *t=""); | 
| 59 | 
     void GetLevel2Struct(cSoftInfo *l2) const; | 
     void GetLevel2Struct(cSoftInfo *l2) const; | 
| 60 | 
     SoftInfo*   GetSoftInfo(){return this;};   | 
     SoftInfo*   GetSoftInfo(){return this;};   | 
| 61 | 
  | 
     UInt_t GetSWinfo(TString DEC); | 
| 62 | 
        | 
        | 
| 63 | 
     // | 
     // | 
| 64 | 
     ClassDef(SoftInfo,1); | 
     ClassDef(SoftInfo,2); | 
| 65 | 
     // | 
     // | 
| 66 | 
 }; | 
 }; | 
| 67 | 
  | 
  | 
| 89 | 
     // | 
     // | 
| 90 | 
     SoftInfo *version; | 
     SoftInfo *version; | 
| 91 | 
     // | 
     // | 
| 92 | 
  | 
     //    GL_RUN *glrun; | 
| 93 | 
  | 
     // | 
| 94 | 
     // Default constructor | 
     // Default constructor | 
| 95 | 
     // | 
     // | 
| 96 | 
     ItoRunInfo(); | 
     ItoRunInfo(); | 
| 97 | 
  | 
     ~ItoRunInfo(); | 
| 98 | 
     // | 
     // | 
| 99 | 
     // Other constructors... | 
     // Other constructors... | 
| 100 | 
     // | 
     // | 
| 110 | 
     // | 
     // | 
| 111 | 
     Int_t Update(UInt_t run, TString Detector, TString Version); | 
     Int_t Update(UInt_t run, TString Detector, TString Version); | 
| 112 | 
     Int_t Read(UInt_t run); | 
     Int_t Read(UInt_t run); | 
| 113 | 
  | 
     void Write(); | 
| 114 | 
     Int_t GetRunInfo(UInt_t run); | 
     Int_t GetRunInfo(UInt_t run); | 
| 115 | 
     UInt_t GetRunForEntry(UInt_t entry); | 
     UInt_t GetRunForEntry(UInt_t entry); | 
| 116 | 
     void Close(); | 
     void Close(); | 
| 117 | 
     void Clear(); | 
     void Clear(Option_t *t=""); | 
| 118 | 
     // | 
     // | 
| 119 | 
     void *GetPointerToSI(){return &version;}; | 
     void *GetPointerToSI(){return &version;}; | 
| 120 | 
     void *GetPointerToRI(){return this;}; | 
     void *GetPointerToRI(){return this;}; | 
| 121 | 
     TChain *LoadRunInfoTree(TList *fl); | 
     //void *GetPointerToRI(){return &glrun;}; | 
| 122 | 
  | 
     TChain *GetRunTree(TList *fl); | 
| 123 | 
     // | 
     // | 
| 124 | 
     UInt_t GetRunEntries(){return(totnorun);}; | 
     UInt_t GetRunEntries(){return(totnorun);}; | 
| 125 | 
     UInt_t GetNoRun(){return(norun);}; | 
     UInt_t GetNoRun(){return(norun);}; | 
| 127 | 
     Bool_t IsReprocessing(){return(reprocessing);}; | 
     Bool_t IsReprocessing(){return(reprocessing);}; | 
| 128 | 
     UInt_t GetFirstEntry(){return(first_file_entry);}; | 
     UInt_t GetFirstEntry(){return(first_file_entry);}; | 
| 129 | 
     UInt_t GetLastEntry(){return(last_file_entry-1);}; | 
     UInt_t GetLastEntry(){return(last_file_entry-1);}; | 
| 130 | 
     UInt_t GetEntries(){return(last_file_entry-1-first_file_entry);}; | 
     UInt_t GetEntries(){Long64_t en = last_file_entry-1-first_file_entry; if ( en < 0LL ) en = 0LL; return((UInt_t)en);}; | 
| 131 | 
     UInt_t GetFileEntries(){return(file_entries);};     | 
     UInt_t GetFileEntries(){return(file_entries);};     | 
| 132 | 
     // | 
     // | 
| 133 | 
     ClassDef(ItoRunInfo,1); | 
     ClassDef(ItoRunInfo,3); | 
| 134 | 
     // | 
     // | 
| 135 | 
 }; | 
 }; | 
| 136 | 
  | 
  |