Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes

TGo4FileSource Class Reference

#include <TGo4FileSource.h>

Inheritance diagram for TGo4FileSource:
TGo4EventSource

List of all members.

Public Member Functions

 TGo4FileSource ()
 TGo4FileSource (TGo4FileSourceParameter *par)
 TGo4FileSource (const char *name)
virtual ~TGo4FileSource ()
virtual Bool_t BuildEvent (TGo4EventElement *dest)

Static Public Member Functions

static TList * ProducesFilesList (const char *mask)

Private Member Functions

Bool_t OpenNextFile ()
Bool_t CloseCurrentFile ()

Private Attributes

TFile * fxFile
TTree * fxTree
Long64_t fiMaxEvents
Long64_t fiCurrentEvent
long int fiGlobalEvent
Bool_t fbActivated
TGo4EventElementfxTopEvent
TList * fxFilesNames
TString fxCurrentFileName

Detailed Description

Raw event source which reads entries from a root TTree in a TFile. File is opened by ctor; method BuildEvent() iterates over tree. Needs pointer to external reference to event structure class which must match the structure of the tree entry New since 10/2004: Name of event element defines tree subbranch to be activated as partial input

Author:
J. Adamczewski
Since:
1/2001

Definition at line 37 of file TGo4FileSource.h.


Constructor & Destructor Documentation

TGo4FileSource::TGo4FileSource (  ) 

Definition at line 67 of file TGo4FileSource.cxx.

TGo4FileSource::TGo4FileSource ( TGo4FileSourceParameter par  ) 
TGo4FileSource::TGo4FileSource ( const char *  name  ) 
TGo4FileSource::~TGo4FileSource (  )  [virtual]

Definition at line 81 of file TGo4FileSource.cxx.

References CloseCurrentFile(), and fxFilesNames.


Member Function Documentation

Bool_t TGo4FileSource::CloseCurrentFile (  )  [private]

Close currently open file.

Definition at line 184 of file TGo4FileSource.cxx.

References fbActivated, fiCurrentEvent, fiMaxEvents, fxCurrentFileName, fxFile, fxTopEvent, fxTree, and TGo4Log::Info().

Referenced by OpenNextFile(), and ~TGo4FileSource().

Bool_t TGo4FileSource::OpenNextFile (  )  [private]
TList * TGo4FileSource::ProducesFilesList ( const char *  mask  )  [static]

Definition at line 91 of file TGo4FileSource.cxx.

References TGo4FileStore::fgcFILESUF.

Referenced by TGo4MbsFile::AddFileName(), and TGo4FileSource().


Member Data Documentation

Bool_t TGo4FileSource::fbActivated [private]

This flag is used for lazy init of tree in Eventbuilding methods.

Definition at line 73 of file TGo4FileSource.h.

Referenced by BuildEvent(), and CloseCurrentFile().

Long64_t TGo4FileSource::fiCurrentEvent [private]

Event number in current tree.

Definition at line 67 of file TGo4FileSource.h.

Referenced by BuildEvent(), and CloseCurrentFile().

long int TGo4FileSource::fiGlobalEvent [private]

Global event number, starting from the first tree.

Definition at line 70 of file TGo4FileSource.h.

Referenced by BuildEvent().

Long64_t TGo4FileSource::fiMaxEvents [private]

Number of events stored in the Tree. Used to check if the complete tree is already read.

Definition at line 64 of file TGo4FileSource.h.

Referenced by BuildEvent(), CloseCurrentFile(), and OpenNextFile().

current name of the file

Definition at line 82 of file TGo4FileSource.h.

Referenced by BuildEvent(), CloseCurrentFile(), and OpenNextFile().

TFile* TGo4FileSource::fxFile [private]

Definition at line 58 of file TGo4FileSource.h.

Referenced by CloseCurrentFile(), and OpenNextFile().

TList* TGo4FileSource::fxFilesNames [private]

list of files names

Definition at line 79 of file TGo4FileSource.h.

Referenced by OpenNextFile(), TGo4FileSource(), and ~TGo4FileSource().

pointer to top branch event

Definition at line 76 of file TGo4FileSource.h.

Referenced by BuildEvent(), and CloseCurrentFile().

TTree* TGo4FileSource::fxTree [private]

Definition at line 60 of file TGo4FileSource.h.

Referenced by BuildEvent(), CloseCurrentFile(), and OpenNextFile().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines