GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TGo4TreeSource Class Reference

#include <TGo4TreeSource.h>

+ Inheritance diagram for TGo4TreeSource:

Public Member Functions

 TGo4TreeSource ()
 
 TGo4TreeSource (const char *name)
 
virtual ~TGo4TreeSource ()
 
 TGo4TreeSource (TGo4TreeSourceParameter *par)
 
Bool_t BuildEvent (TGo4EventElement *dest)
 
- Public Member Functions inherited from TGo4EventSource
 TGo4EventSource (const char *name)
 
virtual ~TGo4EventSource ()
 
 TGo4EventSource ()
 
virtual void Clear (Option_t *opt="")
 
Int_t GetCreateStatus () const
 
Int_t GetEventStatus () const
 
const char * GetErrMess () const
 
virtual const char * GetActiveName ()
 
virtual Bool_t CheckEventClass (TClass *cl)
 

Private Member Functions

Int_t Open ()
 

Private Attributes

TGo4MainTreefxSingletonTree
 
TTree * fxTree
 
TBranch * fxBranch
 

Additional Inherited Members

- Static Public Attributes inherited from TGo4EventSource
static const Int_t fgiTIMEOUTDEFAULT =1
 
- Protected Types inherited from TGo4EventSource
enum  { fguTXTLEN = 256 }
 
- Protected Member Functions inherited from TGo4EventSource
void SetErrMess (const char *txt)
 
void SetEventStatus (Int_t status)
 
void SetCreateStatus (Int_t status)
 
void ThrowError (Int_t creastat, Int_t errstat, const char *message,...)
 
void ThrowEOF (Int_t creastat, Int_t errstat, const char *message,...)
 

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 32 of file TGo4TreeSource.h.

Constructor & Destructor Documentation

TGo4TreeSource::TGo4TreeSource ( )

Definition at line 38 of file TGo4TreeSource.cxx.

References GO4TRACE.

TGo4TreeSource::TGo4TreeSource ( const char *  name)

Definition at line 23 of file TGo4TreeSource.cxx.

References GO4TRACE, and Open().

TGo4TreeSource::~TGo4TreeSource ( )
virtual
TGo4TreeSource::TGo4TreeSource ( TGo4TreeSourceParameter par)

Definition at line 30 of file TGo4TreeSource.cxx.

References GO4TRACE, and Open().

Member Function Documentation

Bool_t TGo4TreeSource::BuildEvent ( TGo4EventElement dest)
virtual

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.

Reimplemented from TGo4EventSource.

Definition at line 85 of file TGo4TreeSource.cxx.

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

Referenced by TGo4SimpleEvent::Fill().

Int_t TGo4TreeSource::Open ( )
private

Member Data Documentation

TBranch* TGo4TreeSource::fxBranch
private

The branch representing our source.

Definition at line 58 of file TGo4TreeSource.h.

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

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 52 of file TGo4TreeSource.h.

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

TTree* TGo4TreeSource::fxTree
private

Reference to external root tree singleton.

Definition at line 55 of file TGo4TreeSource.h.

Referenced by Open().


The documentation for this class was generated from the following files: