/[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.5 by mocchiut, Thu Nov 2 12:32:58 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      //      //
65      SoftInfo *version;      SoftInfo *version;
66      //      //
67        //    GL_RUN *glrun;
68        //
69      // Default constructor      // Default constructor
70      //      //
71      ItoRunInfo();      ItoRunInfo();
# Line 75  class ItoRunInfo : public GL_RUN { Line 82  class ItoRunInfo : public GL_RUN {
82      //      //
83      //      //
84      //      //
85      Int_t Update(ULong64_t run, TString Detector, TString Version);      Int_t Update(UInt_t run, TString Detector, TString Version);
86      Int_t Read(ULong64_t run);      Int_t Read(UInt_t run);
87      Int_t GetRunInfo(ULong64_t run);      Int_t GetRunInfo(UInt_t run);
88      UInt_t GetRunForEntry(UInt_t entry);      UInt_t GetRunForEntry(UInt_t entry);
89      void Close();      void Close();
90      void Clear();      void Clear();
91      //      //
92      Long64_t GetRunEntries(){return(totnorun);};      void *GetPointerToSI(){return &version;};
93        void *GetPointerToRI(){return this;};
94        //void *GetPointerToRI(){return &glrun;};
95        TChain *LoadRunInfoTree(TList *fl);
96        //
97        UInt_t GetRunEntries(){return(totnorun);};
98      UInt_t GetNoRun(){return(norun);};      UInt_t GetNoRun(){return(norun);};
99      TArrayL *GetRunList(){return(runlist);};      TArrayI *GetRunList(){return(runlist);};
100      Bool_t IsReprocessing(){return(reprocessing);};      Bool_t IsReprocessing(){return(reprocessing);};
101      UInt_t GetFirstEntry(){return(first_file_entry);};      UInt_t GetFirstEntry(){return(first_file_entry);};
102      UInt_t GetLastEntry(){return(last_file_entry-1);};      UInt_t GetLastEntry(){return(last_file_entry-1);};
103      ULong64_t GetFileEntries(){return(file_entries);};          UInt_t GetEntries(){return(last_file_entry-1-first_file_entry);};
104        UInt_t GetFileEntries(){return(file_entries);};    
105      //      //
106      ClassDef(ItoRunInfo,1);      ClassDef(ItoRunInfo,1);
107      //      //

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

  ViewVC Help
Powered by ViewVC 1.1.23