GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4FileSource.h
Go to the documentation of this file.
1 // $Id: TGo4FileSource.h 2627 2019-10-01 08:02:45Z 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 fuer 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 
37 
38  public:
39 
41 
43 
44  TGo4FileSource(const char* name);
45 
46  virtual ~TGo4FileSource();
47 
51  virtual Bool_t BuildEvent(TGo4EventElement* dest);
52 
53  static TList* ProducesFilesList(const char* mask);
54 
55  private:
56 
57  TFile* fxFile;
58 
59  TTree * fxTree;
60 
63  Long64_t fiMaxEvents;
64 
66  Long64_t fiCurrentEvent;
67 
69  long int fiGlobalEvent;
70 
72  Bool_t fbActivated;
73 
76 
78  TList* fxFilesNames;
79 
82 
84  Bool_t OpenNextFile();
85 
87  Bool_t CloseCurrentFile();
88 
89  ClassDef(TGo4FileSource,2)
90 };
91 
92 #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