/[PAMELA software]/DarthVader/RunInfo/inc/RunInfo.h
ViewVC logotype

Diff of /DarthVader/RunInfo/inc/RunInfo.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by pam-fi, Fri Jul 21 11:00:13 2006 UTC revision 1.4 by mocchiut, Mon Sep 4 15:43:49 2006 UTC
# Line 3  Line 3 
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>
# Line 30  class SoftInfo : public TObject { Line 31  class SoftInfo : public TObject {
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      //      //
# Line 39  class SoftInfo : public TObject { Line 43  class SoftInfo : public TObject {
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;
# Line 49  class ItoRunInfo : public GL_RUN { Line 53  class ItoRunInfo : public GL_RUN {
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      //      //
# Line 75  class ItoRunInfo : public GL_RUN { Line 80  class ItoRunInfo : public GL_RUN {
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      ULong64_t GetFileEntries(){return(file_entries);};          UInt_t GetEntries(){return(last_file_entry-1-first_file_entry);};
101        UInt_t GetFileEntries(){return(file_entries);};    
102      //      //
103      ClassDef(ItoRunInfo,1);      ClassDef(ItoRunInfo,1);
104      //      //

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.23