GSI Object Oriented Online Offline (Go4)  GO4-5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4FileSource.h
Go to the documentation of this file.
1 // $Id: TGo4FileSource.h 759 2011-06-22 11:34:10Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4FILESOURCE_H
15 #define TGO4FILESOURCE_H
16 
17 #include "TGo4EventSource.h"
18 
19 #include "TString.h"
20 
21 class TFile;
22 class TTree;
23 class TList;
25 class TGo4EventElement;
26 class TGo4CompositeEvent;
27 
38 
39  public:
40 
42 
44 
45  TGo4FileSource(const char* name);
46 
47  virtual ~TGo4FileSource();
48 
52  virtual Bool_t BuildEvent(TGo4EventElement* dest);
53 
54  static TList* ProducesFilesList(const char* mask);
55 
56  private:
57 
58  TFile* fxFile;
59 
60  TTree * fxTree;
61 
64  Long64_t fiMaxEvents;
65 
67  Long64_t fiCurrentEvent;
68 
70  long int fiGlobalEvent;
71 
73  Bool_t fbActivated;
74 
77 
79  TList* fxFilesNames;
80 
83 
85  Bool_t OpenNextFile();
86 
88  Bool_t CloseCurrentFile();
89 
90  ClassDef(TGo4FileSource,2)
91 };
92 
93 #endif //TGO4FILESOURCE_H
virtual ~TGo4FileSource()
long int fiGlobalEvent
Long64_t fiCurrentEvent
TGo4EventElement * fxTopEvent
TString fxCurrentFileName
Bool_t CloseCurrentFile()
virtual Bool_t BuildEvent(TGo4EventElement *dest)
Long64_t fiMaxEvents
static TList * ProducesFilesList(const char *mask)
TList * fxFilesNames