v2.10-0 (21000JUN2005)

Go4EventServer
Class TGo4MainTree


class TGo4MainTree
derived from TObject

Singleton containing and managing the main tree
of the go4 analysis. All analysis steps may get and
save their events as branches of this tree. The treesource
and treestore instances are managing just one branch of
this tree for each of their subevents. Branches of this
tree might be saved into different root files.

Author:
J. Adamczewski
Since: 16-feb-2001

Field Summary
 const static const Text_t[]fgcFILENAME
          Standard suffix for file name
 const static const Text_t[]fgcTREENAME
          Standard go4 name of the main tree
 const static const Int_tfgiAUTOSAVESIZE
          Default tree autosave size
 const static const Int_tfgiCOMPRESS
          Default compression level
 private Int_tfiCurrentIndex
          Index number of the current event.
 private Int_tfiMaxIndex
          Number of events stored in the Tree.
 private TFile*fxFile
           
 private static TGo4MainTree*fxInstance
           
 private TTree*fxTree
           

Constructor Summary
 protected TGo4MainTree()
           

Destructor Summary
 virtual synchronized ~TGo4MainTree()
           

Method Summary
 static Bool_tExists()
          True if instance of tree already exists.
 const Int_tGetCurrentIndex()
           
 Int_tGetMaxIndex()
           
 protected TTree*GetTree()
          Access to the tree.
 Int_tIncCurrentIndex()
          Increments current index in the main tree by one.
 static TGo4MainTree*Instance()
           
 voidSetAutoSave(Int_t bytesinterval)
          Set the tree autosave byte interval.
 voidSetCurrentIndex(Int_t number)
           
 voidUpdate()
          Update the tree entry information without processing any branch.
i.e. increment the entry counter with all branches disabled.
 virtual Int_tWrite(const char * dummy, Int_t option, Int_t bufsize)
          Write tree content to file.

Field Detail

fgcFILENAME

public const static const Text_t[] fgcFILENAME
Standard suffix for file name

fgcTREENAME

public const static const Text_t[] fgcTREENAME
Standard go4 name of the main tree

fgiAUTOSAVESIZE

public const static const Int_t fgiAUTOSAVESIZE
Default tree autosave size

fgiCOMPRESS

public const static const Int_t fgiCOMPRESS
Default compression level

fiCurrentIndex

private Int_t fiCurrentIndex
Index number of the current event.

fiMaxIndex

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

fxFile

private TFile* fxFile

fxInstance

private static TGo4MainTree* fxInstance

fxTree

private TTree* fxTree
Constructor Detail

TGo4MainTree

protected TGo4MainTree()
Method Detail

~TGo4MainTree

public virtual synchronized ~TGo4MainTree()
Method Detail

Exists

public static Bool_t Exists()
True if instance of tree already exists. Used by framework to check if MainTree
was created by any treestore/source instance, before the instance is
requested. Otherwise framework would create maintree without need.

GetCurrentIndex

public const Int_t GetCurrentIndex()

GetMaxIndex

public Int_t GetMaxIndex()

GetTree

protected TTree* GetTree()
Access to the tree. For friends only, i.e
TreeSource and TreeStore.

IncCurrentIndex

public Int_t IncCurrentIndex()
Increments current index in the main tree by one.
Returns the value of the index after incrementation.
To be used by event loop controlling framework.

Instance

public static TGo4MainTree* Instance()

SetAutoSave

public void SetAutoSave(Int_t bytesinterval)
Set the tree autosave byte interval. May be changed on the fly.

SetCurrentIndex

public void SetCurrentIndex(Int_t number)

Update

public void Update()
Update the tree entry information without processing any branch.
i.e. increment the entry counter with all branches disabled. To be called by
framework once within the event loop.

Write

public virtual Int_t Write(const char * dummy, Int_t option, Int_t bufsize)
Write tree content to file.

Association Links

to Class TGo4MainTree


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

30-06-2005