v2.10-0 (21000JUN2005)

Go4EventServer
Class TGo4BackStore


class TGo4BackStore
derived from TGo4EventStore

Event store to keep the last n events in a TTree which is _not_ saved to a file. Allows to
view the event structure from the tree and to perform TTree::Draw actions on the last events
by means of dynamic list. May contain ring buffer functionality.

Author:
J. Adamczewski
Since: 4/2002

Field Summary
 private Bool_tfbBranchExists
          True if branch already exists.
 const static const Text_t[]fgcEVBRANCHNAME
          Standard go4 name of the branch used in all treestore
and treesource implementations.
 const static const Text_t[]fgcTREESUF
          Standard go4 suffix for tree name
 const static const Int_tfgiMAXAUTOBYTES
          Number of bytes for autosave attempt of tree.
 private Int_tfiBufsize
          buffer size for tree branch.
 private Int_tfiFillCount
          counter of filled events.
 private Int_tfiSplit
          TBranch splitlevel.
 private TGo4EventElement*fxEvent
          Points to event structure to be filled into branch.
 private TTree*fxTree
           

Fields inherited from interface Go4Event.TGo4EventStore
fguTXTLEN

Fields inherited from class TNamed
fName, fTitle

Constructor Summary
TGo4BackStore()
           
TGo4BackStore(TGo4BackStoreParameter* par)
           

Destructor Summary
 virtual synchronized ~TGo4BackStore()
           

Method Summary
 TTree*GetTree()
          Access to the Tree structure, for framework
 voidReset()
          Dynamic list might reset backstore after processing
 virtual Int_tStore(TGo4EventElement* event)
          Stores eventelement event into the storage implementation.
 virtual Int_tStore(TGo4Parameter* cali)
          Saves a calibration object correllated with the current event into the storage.
 virtual Int_tStore(TGo4Condition* conny)
          Saves a condition correllated with the current event into the storage.
 virtual Int_tStore(TGo4Fitter* fitter)
          Saves a fitter correllated with the current event into the storage.
 virtual Int_tStore(TFolder* fold)
          Saves a folder correllated with the current event into the storage.

Methods inherited from interface Go4Event.TGo4EventStore
Clear

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

fbBranchExists

private Bool_t fbBranchExists
True if branch already exists. Used for automatic creation
of new event branch within Store method.

fgcEVBRANCHNAME

public const static const Text_t[] fgcEVBRANCHNAME
Standard go4 name of the branch used in all treestore
and treesource implementations.

fgcTREESUF

public const static const Text_t[] fgcTREESUF
Standard go4 suffix for tree name

fgiMAXAUTOBYTES

public const static const Int_t fgiMAXAUTOBYTES
Number of bytes for autosave attempt of tree. This specifies when the
tree in memory will be reset, since we do not want to autosave anything here.

fiBufsize

private Int_t fiBufsize
buffer size for tree branch.

fiFillCount

private Int_t fiFillCount
counter of filled events.

fiSplit

private Int_t fiSplit
TBranch splitlevel.

fxEvent

private TGo4EventElement* fxEvent
Points to event structure to be filled into branch.

fxTree

private TTree* fxTree
Constructor Detail

TGo4BackStore

public TGo4BackStore()

TGo4BackStore

public TGo4BackStore(TGo4BackStoreParameter* par)
Method Detail

~TGo4BackStore

public virtual synchronized ~TGo4BackStore()
Method Detail

GetTree

public TTree* GetTree()
Access to the Tree structure, for framework

Reset

public void Reset()
Dynamic list might reset backstore after processing

Store

public virtual Int_t Store(TGo4EventElement* event)
Stores eventelement event into the storage implementation.

Store

public virtual Int_t Store(TGo4Parameter* cali)
Saves a calibration object correllated with the current event into the storage.

Store

public virtual Int_t Store(TGo4Condition* conny)
Saves a condition correllated with the current event into the storage.

Store

public virtual Int_t Store(TGo4Fitter* fitter)
Saves a fitter correllated with the current event into the storage.

Store

public virtual Int_t Store(TFolder* fold)
Saves a folder correllated with the current event into the storage.

Association Links

to Class TGo4EventElement

Points to event structure to be filled into branch.

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

30-06-2005