/[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.2 - (show annotations) (download)
Fri Jul 21 11:00:13 2006 UTC (18 years, 4 months ago) by pam-fi
Branch: MAIN
CVS Tags: v1r01
Changes since 1.1: +4 -0 lines
File MIME type: text/plain
modified for C3PO

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

  ViewVC Help
Powered by ViewVC 1.1.23