GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4FileSource.h
Go to the documentation of this file.
1// $Id$
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
21class TFile;
22class TTree;
23class TList;
26
38
39 public:
40
42
44
45 TGo4FileSource(const char *name);
46
47 virtual ~TGo4FileSource();
48
52 Bool_t BuildEvent(TGo4EventElement *dest) override;
53
54 static TList *ProducesFilesList(const char *mask);
55
56 private:
57
58 TFile *fxFile{nullptr};
59
60 TTree *fxTree{nullptr};
61
64 Long64_t fiMaxEvents{0};
65
67 Long64_t fiCurrentEvent{0};
68
70 long int fiGlobalEvent{0};
71
73 Bool_t fbActivated{kFALSE};
74
77
79 TList *fxFilesNames{nullptr};
80
83
85 Bool_t OpenNextFile();
86
88 Bool_t CloseCurrentFile();
89
90 ClassDefOverride(TGo4FileSource,2)
91};
92
93#endif //TGO4FILESOURCE_H
The abstract base class for the data elements of which the unpacked events (or detector structure dat...
Long64_t fiMaxEvents
Number of events stored in the Tree.
long int fiGlobalEvent
Global event number, starting from the first tree.
TList * fxFilesNames
list of files names
TGo4EventElement * fxTopEvent
pointer to top branch event
virtual ~TGo4FileSource()
Bool_t CloseCurrentFile()
Close currently open file.
Bool_t BuildEvent(TGo4EventElement *dest) override
Fill the destination event dest from the tree.
TString fxCurrentFileName
current name of the file
Bool_t fbActivated
This flag is used for lazy init of tree in Eventbuilding methods.
Bool_t OpenNextFile()
Open next file from the files list.
Long64_t fiCurrentEvent
Event number in current tree.
static TList * ProducesFilesList(const char *mask)