/[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.1 by mocchiut, Fri May 19 13:15:47 2006 UTC revision 1.10 by mocchiut, Wed Aug 27 14:44:33 2014 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>
12  //  //
13    #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;
# Line 22  class SoftInfo : public TObject { Line 50  class SoftInfo : public TObject {
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(Option_t *t="");
59        void GetLevel2Struct(cSoftInfo *l2) const;
60        SoftInfo*   GetSoftInfo(){return this;};  
61        UInt_t GetSWinfo(TString DEC);
62          
63      //      //
64      ClassDef(SoftInfo,1);      ClassDef(SoftInfo,2);
65      //      //
66  };  };
67    
68  class ItoRunInfo : public GL_RUN {  class ItoRunInfo : public GL_RUN {
69    
70   private:   private:
71      ULong64_t file_entries;      UInt_t file_entries;
72      Long64_t totnorun;      UInt_t totnorun;
73      Int_t first_file_entry;      Int_t first_file_entry;
74      Int_t last_file_entry;      Int_t last_file_entry;
75      UInt_t norun;      UInt_t norun;
# Line 45  class ItoRunInfo : public GL_RUN { Line 78  class ItoRunInfo : public GL_RUN {
78      Bool_t isreadonly;      Bool_t isreadonly;
79      TFile *file;      TFile *file;
80      TTree *newtree;      TTree *newtree;
81      TArrayL *runlist;      TArrayI *runlist;
82      ULong64_t idRun;      UInt_t idRun;
83      TSQLServer *dbc;      TSQLServer *dbc;
84      TString processFolder;      TString processFolder;
85      TString Detector;      TString Detector;
86        void CopyFromTo(GL_RUN *, GL_RUN *, SoftInfo *, SoftInfo *);
87            
88   public:   public:
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      //      //
# Line 71  class ItoRunInfo : public GL_RUN { Line 108  class ItoRunInfo : public GL_RUN {
108      //      //
109      //      //
110      //      //
111      Int_t Update(ULong64_t run, TString Detector, TString Version);      Int_t Update(UInt_t run, TString Detector, TString Version);
112      Int_t Read(ULong64_t run);      Int_t Read(UInt_t run);
113      Int_t GetRunInfo(ULong64_t run);      void Write();
114        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;};
120        void *GetPointerToRI(){return this;};
121        //void *GetPointerToRI(){return &glrun;};
122        TChain *GetRunTree(TList *fl);
123      //      //
124      Long64_t GetRunEntries(){return(totnorun);};      UInt_t GetRunEntries(){return(totnorun);};
125      UInt_t GetNoRun(){return(norun);};      UInt_t GetNoRun(){return(norun);};
126      TArrayL *GetRunList(){return(runlist);};      TArrayI *GetRunList(){return(runlist);};
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      ULong64_t GetFileEntries(){return(file_entries);};          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);};    
132      //      //
133      ClassDef(ItoRunInfo,1);      ClassDef(ItoRunInfo,3);
134      //      //
135  };  };
136    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.23