v2.10-0 (21000JUN2005)

Go4EventServer
Class TGo4TreeSource


class TGo4TreeSource
derived from TGo4EventSource

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

Field Summary
 private TBranch*fxBranch
          The branch representing our source.
 private TGo4MainTree*fxSingletonTree
          Reference to external tree singleton wrapper instance.
 private TTree*fxTree
          Reference to external root tree singleton.

Fields inherited from interface Go4Event.TGo4EventSource
fgiTIMEOUTDEFAULT, fguTXTLEN

Fields inherited from class TNamed
fName, fTitle

Constructor Summary
TGo4TreeSource()
           
TGo4TreeSource(const char * name)
           
TGo4TreeSource(TGo4TreeSourceParameter* par)
           

Destructor Summary
 virtual synchronized ~TGo4TreeSource()
           

Method Summary
 Bool_tBuildEvent(TGo4EventElement* dest)
          Fill the destination event dest from the tree.
 private Int_tOpen()
           

Methods inherited from interface Go4Event.TGo4EventSource
Clear, GetCreateStatus, GetErrMess, GetEventStatus, SetCreateStatus, SetErrMess, SetEventStatus, ThrowError

Methods inherited from class TNamed
operator=, Clone, Compare, Copy, FillBuffer, GetName, GetTitle, Hash, IsSortable, SetName, SetNameTitle, SetTitle, ls, Print, Sizeof, Class, Class_Name, Class_Version, Dictionary, IsA, ShowMembers, Streamer, StreamerNVirtual, DeclFileName, ImplFileLine, ImplFileName, DeclFileLine

Field Detail

fxBranch

private TBranch* fxBranch
The branch representing our source.

fxSingletonTree

private TGo4MainTree* fxSingletonTree
Reference to external tree singleton wrapper instance.
Is initialized once at the start and used to access
the singleton member functions.

fxTree

private TTree* fxTree
Reference to external root tree singleton.
Constructor Detail

TGo4TreeSource

public TGo4TreeSource()

TGo4TreeSource

public TGo4TreeSource(const char * name)

TGo4TreeSource

public TGo4TreeSource(TGo4TreeSourceParameter* par)
Method Detail

~TGo4TreeSource

public virtual synchronized ~TGo4TreeSource()
Method Detail

BuildEvent

public Bool_t 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.

Open

private Int_t Open()

Association Links

to Class TGo4MainTree

Reference to external tree singleton wrapper instance.
Is initialized once at the start and used to access
the singleton member functions.

to Class TBranch

The branch representing our source.

J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev

30-06-2005