GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4TreeSource Class Reference

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

#include <TGo4TreeSource.h>

+ Inheritance diagram for TGo4TreeSource:

Public Member Functions

 TGo4TreeSource ()
 
 TGo4TreeSource (const char *name)
 
 TGo4TreeSource (TGo4TreeSourceParameter *par)
 
virtual ~TGo4TreeSource ()
 
Bool_t BuildEvent (TGo4EventElement *dest) override
 Fill the destination event dest from the tree.
 
- Public Member Functions inherited from TGo4EventSource
 TGo4EventSource ()
 
 TGo4EventSource (const char *name)
 
virtual ~TGo4EventSource ()
 
virtual Bool_t CheckEventClass (TClass *cl)
 Check that event class is supported by event source.
 
void Clear (Option_t *opt="") override
 
virtual const char * GetActiveName () const
 Access to the name of the currently active source.
 
Int_t GetCreateStatus () const
 Status value of server/file open.
 
const char * GetErrMess () const
 Status/ error message of the last event.
 
Int_t GetEventStatus () const
 Status of the last event.
 

Private Member Functions

Int_t Open ()
 

Private Attributes

TBranch * fxBranch {nullptr}
 The branch representing our source.
 
TGo4MainTreefxSingletonTree {nullptr}
 Reference to external tree singleton wrapper instance.
 
TTree * fxTree {nullptr}
 Reference to external root tree singleton.
 

Additional Inherited Members

- Static Public Attributes inherited from TGo4EventSource
static const Int_t fgiTIMEOUTDEFAULT =1
 Default timeout in seconds for event input.
 
- Protected Types inherited from TGo4EventSource
enum  { fguTXTLEN = 256 }
 text length More...
 
- Protected Member Functions inherited from TGo4EventSource
void SetCreateStatus (Int_t status)
 Status value of event source init (file/server open).
 
void SetErrMess (const char *txt)
 To be used for modification of the message by the event source implementation.
 
void SetEventStatus (Int_t status)
 Status of the last event.
 
void ThrowEOF (Int_t creastat, Int_t errstat, const char *message,...)
 EOF thrower.
 
void ThrowError (Int_t creastat, Int_t errstat, const char *message,...)
 Exception thrower.
 

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

Constructor & Destructor Documentation

◆ TGo4TreeSource() [1/3]

TGo4TreeSource::TGo4TreeSource ( )

Definition at line 40 of file TGo4TreeSource.cxx.

References TGo4EventSource::TGo4EventSource(), and GO4TRACE.

◆ TGo4TreeSource() [2/3]

TGo4TreeSource::TGo4TreeSource ( const char * name)

Definition at line 25 of file TGo4TreeSource.cxx.

References TGo4EventSource::TGo4EventSource(), GO4TRACE, and Open().

◆ ~TGo4TreeSource()

TGo4TreeSource::~TGo4TreeSource ( )
virtual

Definition at line 46 of file TGo4TreeSource.cxx.

References fxBranch, fxSingletonTree, and GO4TRACE.

◆ TGo4TreeSource() [3/3]

TGo4TreeSource::TGo4TreeSource ( TGo4TreeSourceParameter * par)

Definition at line 32 of file TGo4TreeSource.cxx.

References TGo4EventSource::TGo4EventSource(), GO4TRACE, and Open().

Member Function Documentation

◆ BuildEvent()

Bool_t TGo4TreeSource::BuildEvent ( TGo4EventElement * dest)
overridevirtual

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 83 of file TGo4TreeSource.cxx.

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

◆ Open()

Int_t TGo4TreeSource::Open ( )
private

Field Documentation

◆ fxBranch

TBranch* TGo4TreeSource::fxBranch {nullptr}
private

The branch representing our source.

Definition at line 59 of file TGo4TreeSource.h.

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

◆ fxSingletonTree

TGo4MainTree* TGo4TreeSource::fxSingletonTree {nullptr}
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 53 of file TGo4TreeSource.h.

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

◆ fxTree

TTree* TGo4TreeSource::fxTree {nullptr}
private

Reference to external root tree singleton.

Definition at line 56 of file TGo4TreeSource.h.

Referenced by Open().


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