v2.10-0 (21000JUN2005)

Go4EventServer
Class TGo4TreeStore


class TGo4TreeStore
derived from TGo4EventStore

Storage instance using the central main go4 tree which
is accessible as singleton. Each treestore instance
adds at least one new branch to that tree and fills
it with the data at the event pointer. Branch associated
with this tree store may be written to the main tree file,
or be located in another file which is specified by the
filename parameter of ctor.

Author:
J. Adamczewski
Since: 1/2001

Field Summary
 private Text_t[256]fcEventClass
          Class name of the event associated with this store.
 const static const Text_t[]fgcFILESUF
          Standard suffix for file name
 private Int_tfiBufsize
          buffer size for tree branch.
 private Int_tfiSplit
          TBranch splitlevel.
 private TBranch*fxBranch
          The branch representing our store.
 private TGo4EventCalibration*fxCalibration
          Points to calibration structure to be filled into branch.
 private TGo4EventElement*fxEvent
          Points to event structure to be filled into branch.
 private TFile*fxFile
          Optional file where our branches are located.
 private TGo4MainTree*fxSingletonTree
          Reference to external tree singleton wrapper instance.
 private TTree*fxTree
          Reference to the external main tree.

Fields inherited from interface Go4Event.TGo4EventStore
fguTXTLEN

Fields inherited from class TNamed
fName, fTitle

Constructor Summary
TGo4TreeStore(const char * name, TGo4EventElement* event, Int_t splitlevel, Int_t bufsize, Text_t* filename, Int_t compression)
           
TGo4TreeStore()
           
TGo4TreeStore(TGo4TreeStoreParameter* par, TGo4EventElement* event)
           

Destructor Summary
 virtual synchronized ~TGo4TreeStore()
           

Method Summary
 voidSetCompression(Int_t comp)
          Set the file compression level.
 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.

Methods inherited from interface Go4Event.TGo4EventStore
Clear, GetTree, Store, Store, Store

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

fcEventClass

private Text_t[256] fcEventClass
Class name of the event associated with this store.

fgcFILESUF

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

fiBufsize

private Int_t fiBufsize
buffer size for tree branch.

fiSplit

private Int_t fiSplit
TBranch splitlevel.

fxBranch

private TBranch* fxBranch
The branch representing our store.

fxCalibration

private TGo4EventCalibration* fxCalibration
Points to calibration structure to be filled into branch.

fxEvent

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

fxFile

private TFile* fxFile
Optional file where our branches are located. By
default, branches are written to the same file as the main tree.

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 the external main tree.
Constructor Detail

TGo4TreeStore

public TGo4TreeStore(const char * name, TGo4EventElement* event, Int_t splitlevel, Int_t bufsize, Text_t* filename, Int_t compression)

TGo4TreeStore

public TGo4TreeStore()

TGo4TreeStore

public TGo4TreeStore(TGo4TreeStoreParameter* par, TGo4EventElement* event)
Method Detail

~TGo4TreeStore

public virtual synchronized ~TGo4TreeStore()
Method Detail

SetCompression

public void SetCompression(Int_t comp)
Set the file compression level. May be changed on the fly.

Store

public virtual Int_t Store(TGo4EventElement* event)
Stores eventelement event into the storage implementation.
May be a file, a root tree, a socket to a viewer...

Store

public virtual Int_t Store(TGo4Parameter* cali)
Saves a calibration object correllated with the current event into the storage.
This method is optional, i.e. it needs not to be implemented for all subclasses.

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 store.

to Class TGo4EventElement

Points to event structure to be filled into branch.

to Class TGo4EventCalibration

Points to calibration structure to be filled into branch.

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

30-06-2005