/[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.8 - (hide annotations) (download)
Fri Nov 23 16:42:45 2007 UTC (17 years ago) by mocchiut
Branch: MAIN
CVS Tags: v5r00, v9r00, v9r01, v6r01, v6r00
Changes since 1.7: +2 -2 lines
File MIME type: text/plain
Wrong TObject methods overloading fixed everywhere but in tracker code

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 mocchiut 1.6 TString DV_ver;
22     TString ORB_ver;
23 mocchiut 1.1 TString TRIG_ver;
24     TString TOF_ver;
25     TString AC_ver;
26     TString TRK_ver;
27     TString CAL_ver;
28     TString S4_ver;
29     TString ND_ver;
30     //
31     // Default constructor
32     //
33     SoftInfo();
34 pam-fi 1.2
35 mocchiut 1.8 void Clear(Option_t *t="");
36 pam-fi 1.2 void GetLevel2Struct(cSoftInfo *l2) const;
37 mocchiut 1.4 SoftInfo* GetSoftInfo(){return this;};
38 mocchiut 1.6 UInt_t GetSWinfo(TString DEC);
39 mocchiut 1.4
40 mocchiut 1.1 //
41 mocchiut 1.6 ClassDef(SoftInfo,2);
42 mocchiut 1.1 //
43     };
44    
45     class ItoRunInfo : public GL_RUN {
46    
47     private:
48 mocchiut 1.4 UInt_t file_entries;
49     UInt_t totnorun;
50 mocchiut 1.1 Int_t first_file_entry;
51     Int_t last_file_entry;
52     UInt_t norun;
53     Bool_t reprocessing;
54     Bool_t updating;
55     Bool_t isreadonly;
56     TFile *file;
57     TTree *newtree;
58 mocchiut 1.4 TArrayI *runlist;
59     UInt_t idRun;
60 mocchiut 1.1 TSQLServer *dbc;
61     TString processFolder;
62     TString Detector;
63 mocchiut 1.4 void CopyFromTo(GL_RUN *, GL_RUN *, SoftInfo *, SoftInfo *);
64 mocchiut 1.1
65     public:
66     //
67     SoftInfo *version;
68     //
69 mocchiut 1.5 // GL_RUN *glrun;
70     //
71 mocchiut 1.1 // Default constructor
72     //
73     ItoRunInfo();
74     //
75     // Other constructors...
76     //
77     // ... for updating GL_RUN informations by RunInfo exec
78     //
79     ItoRunInfo(TSQLServer *db, TFile *processFl, TString processFld);
80     //
81     // ... for updating versioning informations by programs and to read only data
82     //
83     ItoRunInfo(TFile *processFile);
84     //
85     //
86     //
87 mocchiut 1.4 Int_t Update(UInt_t run, TString Detector, TString Version);
88     Int_t Read(UInt_t run);
89     Int_t GetRunInfo(UInt_t run);
90 mocchiut 1.1 UInt_t GetRunForEntry(UInt_t entry);
91     void Close();
92 mocchiut 1.8 void Clear(Option_t *t="");
93 mocchiut 1.1 //
94 mocchiut 1.4 void *GetPointerToSI(){return &version;};
95     void *GetPointerToRI(){return this;};
96 mocchiut 1.5 //void *GetPointerToRI(){return &glrun;};
97 mocchiut 1.6 TChain *GetRunTree(TList *fl);
98 mocchiut 1.4 //
99     UInt_t GetRunEntries(){return(totnorun);};
100 mocchiut 1.1 UInt_t GetNoRun(){return(norun);};
101 mocchiut 1.4 TArrayI *GetRunList(){return(runlist);};
102 mocchiut 1.1 Bool_t IsReprocessing(){return(reprocessing);};
103     UInt_t GetFirstEntry(){return(first_file_entry);};
104     UInt_t GetLastEntry(){return(last_file_entry-1);};
105 mocchiut 1.7 UInt_t GetEntries(){Long64_t en = last_file_entry-1-first_file_entry; if ( en < 0LL ) en = 0LL; return((UInt_t)en);};
106 mocchiut 1.4 UInt_t GetFileEntries(){return(file_entries);};
107 mocchiut 1.1 //
108     ClassDef(ItoRunInfo,1);
109     //
110     };
111    
112     #endif
113    

  ViewVC Help
Powered by ViewVC 1.1.23