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

Contents of /DarthVader/RunInfo/inc/RunInfo.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Sep 4 15:43:49 2006 UTC (18 years, 2 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 #ifndef RunInfo_h
2 #define RunInfo_h
3 //
4 #include <TObject.h>
5 #include <TTree.h>
6 #include <TChain.h>
7 #include <TFile.h>
8 #include <TArrayI.h>
9 #include <TSQLServer.h>
10 //
11 #include <GLTables.h>
12 //
13 #include <RunInfoStruct.h>
14
15
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
34 void Clear();
35 void GetLevel2Struct(cSoftInfo *l2) const;
36 SoftInfo* GetSoftInfo(){return this;};
37
38 //
39 ClassDef(SoftInfo,1);
40 //
41 };
42
43 class ItoRunInfo : public GL_RUN {
44
45 private:
46 UInt_t file_entries;
47 UInt_t totnorun;
48 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 TArrayI *runlist;
57 UInt_t idRun;
58 TSQLServer *dbc;
59 TString processFolder;
60 TString Detector;
61 void CopyFromTo(GL_RUN *, GL_RUN *, SoftInfo *, SoftInfo *);
62
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 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 UInt_t GetRunForEntry(UInt_t entry);
87 void Close();
88 void Clear();
89 //
90 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);};
96 TArrayI *GetRunList(){return(runlist);};
97 Bool_t IsReprocessing(){return(reprocessing);};
98 UInt_t GetFirstEntry(){return(first_file_entry);};
99 UInt_t GetLastEntry(){return(last_file_entry-1);};
100 UInt_t GetEntries(){return(last_file_entry-1-first_file_entry);};
101 UInt_t GetFileEntries(){return(file_entries);};
102 //
103 ClassDef(ItoRunInfo,1);
104 //
105 };
106
107 #endif
108

  ViewVC Help
Powered by ViewVC 1.1.23