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

Annotation of /DarthVader/RunInfo/inc/RunInfo.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Mon Sep 4 15:43:49 2006 UTC (18 years, 3 months ago) by mocchiut
Branch: MAIN
CVS Tags: v2r00BETA
Changes since 1.3: +20 -11 lines
File MIME type: text/plain
THIS VERSION IS NOT COMPILING, start the adapting to the new profiler

1 mocchiut 1.1 #ifndef RunInfo_h
2     #define RunInfo_h
3     //
4     #include <TObject.h>
5     #include <TTree.h>
6 mocchiut 1.4 #include <TChain.h>
7 mocchiut 1.1 #include <TFile.h>
8 mocchiut 1.4 #include <TArrayI.h>
9 mocchiut 1.1 #include <TSQLServer.h>
10     //
11     #include <GLTables.h>
12     //
13 pam-fi 1.2 #include <RunInfoStruct.h>
14    
15 mocchiut 1.1
16     class SoftInfo : public TObject {
17    
18     private:
19    
20     public:
21     TString TRIG_ver;
22     TString TOF_ver;
23     TString AC_ver;
24     TString TRK_ver;
25     TString CAL_ver;
26     TString S4_ver;
27     TString ND_ver;
28     TString ORB_ver;
29     //
30     // Default constructor
31     //
32     SoftInfo();
33 pam-fi 1.2
34 mocchiut 1.4 void Clear();
35 pam-fi 1.2 void GetLevel2Struct(cSoftInfo *l2) const;
36 mocchiut 1.4 SoftInfo* GetSoftInfo(){return this;};
37    
38 mocchiut 1.1 //
39     ClassDef(SoftInfo,1);
40     //
41     };
42    
43     class ItoRunInfo : public GL_RUN {
44    
45     private:
46 mocchiut 1.4 UInt_t file_entries;
47     UInt_t totnorun;
48 mocchiut 1.1 Int_t first_file_entry;
49     Int_t last_file_entry;
50     UInt_t norun;
51     Bool_t reprocessing;
52     Bool_t updating;
53     Bool_t isreadonly;
54     TFile *file;
55     TTree *newtree;
56 mocchiut 1.4 TArrayI *runlist;
57     UInt_t idRun;
58 mocchiut 1.1 TSQLServer *dbc;
59     TString processFolder;
60     TString Detector;
61 mocchiut 1.4 void CopyFromTo(GL_RUN *, GL_RUN *, SoftInfo *, SoftInfo *);
62 mocchiut 1.1
63     public:
64     //
65     SoftInfo *version;
66     //
67     // Default constructor
68     //
69     ItoRunInfo();
70     //
71     // Other constructors...
72     //
73     // ... for updating GL_RUN informations by RunInfo exec
74     //
75     ItoRunInfo(TSQLServer *db, TFile *processFl, TString processFld);
76     //
77     // ... for updating versioning informations by programs and to read only data
78     //
79     ItoRunInfo(TFile *processFile);
80     //
81     //
82     //
83 mocchiut 1.4 Int_t Update(UInt_t run, TString Detector, TString Version);
84     Int_t Read(UInt_t run);
85     Int_t GetRunInfo(UInt_t run);
86 mocchiut 1.1 UInt_t GetRunForEntry(UInt_t entry);
87     void Close();
88     void Clear();
89     //
90 mocchiut 1.4 void *GetPointerToSI(){return &version;};
91     void *GetPointerToRI(){return this;};
92     TChain *LoadRunInfoTree(TList *fl);
93     //
94     UInt_t GetRunEntries(){return(totnorun);};
95 mocchiut 1.1 UInt_t GetNoRun(){return(norun);};
96 mocchiut 1.4 TArrayI *GetRunList(){return(runlist);};
97 mocchiut 1.1 Bool_t IsReprocessing(){return(reprocessing);};
98     UInt_t GetFirstEntry(){return(first_file_entry);};
99     UInt_t GetLastEntry(){return(last_file_entry-1);};
100 mocchiut 1.3 UInt_t GetEntries(){return(last_file_entry-1-first_file_entry);};
101 mocchiut 1.4 UInt_t GetFileEntries(){return(file_entries);};
102 mocchiut 1.1 //
103     ClassDef(ItoRunInfo,1);
104     //
105     };
106    
107     #endif
108    

  ViewVC Help
Powered by ViewVC 1.1.23