/[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.9 - (hide annotations) (download)
Tue May 15 14:31:19 2012 UTC (12 years, 6 months ago) by mocchiut
Branch: MAIN
Changes since 1.8: +3 -1 lines
File MIME type: text/plain
Reprocessing bugs fixed, ToF bugs fixed, new software versions, new quaternions, IGRF bug fixed, code cleanup

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 mocchiut 1.9 ~ItoRunInfo();
75 mocchiut 1.1 //
76     // Other constructors...
77     //
78     // ... for updating GL_RUN informations by RunInfo exec
79     //
80     ItoRunInfo(TSQLServer *db, TFile *processFl, TString processFld);
81     //
82     // ... for updating versioning informations by programs and to read only data
83     //
84     ItoRunInfo(TFile *processFile);
85     //
86     //
87     //
88 mocchiut 1.4 Int_t Update(UInt_t run, TString Detector, TString Version);
89     Int_t Read(UInt_t run);
90 mocchiut 1.9 void Write();
91 mocchiut 1.4 Int_t GetRunInfo(UInt_t run);
92 mocchiut 1.1 UInt_t GetRunForEntry(UInt_t entry);
93     void Close();
94 mocchiut 1.8 void Clear(Option_t *t="");
95 mocchiut 1.1 //
96 mocchiut 1.4 void *GetPointerToSI(){return &version;};
97     void *GetPointerToRI(){return this;};
98 mocchiut 1.5 //void *GetPointerToRI(){return &glrun;};
99 mocchiut 1.6 TChain *GetRunTree(TList *fl);
100 mocchiut 1.4 //
101     UInt_t GetRunEntries(){return(totnorun);};
102 mocchiut 1.1 UInt_t GetNoRun(){return(norun);};
103 mocchiut 1.4 TArrayI *GetRunList(){return(runlist);};
104 mocchiut 1.1 Bool_t IsReprocessing(){return(reprocessing);};
105     UInt_t GetFirstEntry(){return(first_file_entry);};
106     UInt_t GetLastEntry(){return(last_file_entry-1);};
107 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);};
108 mocchiut 1.4 UInt_t GetFileEntries(){return(file_entries);};
109 mocchiut 1.1 //
110 mocchiut 1.9 ClassDef(ItoRunInfo,3);
111 mocchiut 1.1 //
112     };
113    
114     #endif
115    

  ViewVC Help
Powered by ViewVC 1.1.23