Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TGo4TreeSource Class Reference

Raw event source which reads entries from a root TTree. More...

#include <TGo4TreeSource.h>

Inheritance diagram for TGo4TreeSource:

TGo4EventSource List of all members.

Public Methods

 TGo4TreeSource ()
 TGo4TreeSource (const char *name)
virtual ~TGo4TreeSource ()
 TGo4TreeSource (TGo4TreeSourceParameter *par)
Bool_t BuildEvent (TGo4EventElement *dest)
 Fill the destination event dest from the tree. More...


Private Methods

Int_t Open ()

Private Attributes

TGo4MainTreefxSingletonTree
 Reference to external tree singleton wrapper instance. More...

TTree * fxTree
 Reference to external root tree singleton. More...

TBranch * fxBranch
 The branch representing our source. More...


Detailed Description

Raw event source which reads entries from a root TTree.

We use one single tree for all generations of events, which is kept by the go4 maintree class.

Author:
J. Adamczewski
Since:
1/2001

Definition at line 34 of file TGo4TreeSource.h.


Constructor & Destructor Documentation

TGo4TreeSource::TGo4TreeSource  
 

Definition at line 41 of file TGo4TreeSource.cxx.

References TRACE.

TGo4TreeSource::TGo4TreeSource const char *    name
 

Definition at line 26 of file TGo4TreeSource.cxx.

References Open(), and TRACE.

TGo4TreeSource::~TGo4TreeSource   [virtual]
 

Definition at line 47 of file TGo4TreeSource.cxx.

References fxBranch, fxSingletonTree, TGo4MainTree::GetCurrentIndex(), TGo4MainTree::GetMaxIndex(), and TRACE.

TGo4TreeSource::TGo4TreeSource TGo4TreeSourceParameter   par
 

Definition at line 33 of file TGo4TreeSource.cxx.

References Open(), and TRACE.


Member Function Documentation

Bool_t TGo4TreeSource::BuildEvent TGo4EventElement   dest
 

Fill the destination event dest from the tree.

If end of tree is reached, the current event counter is reset and a kFALSE value is returned.

Definition at line 94 of file TGo4TreeSource.cxx.

References fxBranch, fxSingletonTree, TGo4MainTree::GetCurrentIndex(), TGo4EventSource::ThrowError(), and TRACE.

Referenced by TYYYRawEvent::Fill(), TGo4SimpleEvent::Fill(), and TGo4MbsEvent::Fill().

Int_t TGo4TreeSource::Open   [private]
 

Definition at line 68 of file TGo4TreeSource.cxx.

References TGo4Log::Debug(), TGo4EventSource::fguTXTLEN, fxBranch, fxSingletonTree, fxTree, TGo4MainTree::GetTree(), TGo4MainTree::Instance(), TGo4EventSource::ThrowError(), and TRACE.

Referenced by TGo4TreeSource().


Member Data Documentation

TGo4MainTree* TGo4TreeSource::fxSingletonTree [private]
 

Reference to external tree singleton wrapper instance.

Is initialized once at the start and used to access the singleton member functions.

Definition at line 54 of file TGo4TreeSource.h.

Referenced by BuildEvent(), Open(), and ~TGo4TreeSource().

TTree* TGo4TreeSource::fxTree [private]
 

Reference to external root tree singleton.

Definition at line 57 of file TGo4TreeSource.h.

Referenced by Open().

TBranch* TGo4TreeSource::fxBranch [private]
 

The branch representing our source.

Definition at line 60 of file TGo4TreeSource.h.

Referenced by BuildEvent(), Open(), and ~TGo4TreeSource().


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 10:56:59 2005 for Go4-v2.10-5 by doxygen1.2.15