Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TGo4BackStore Class Reference

Event store to keep the last n events in a TTree which is _not_ saved to a file. More...

#include <TGo4BackStore.h>

Inheritance diagram for TGo4BackStore:

TGo4EventStore List of all members.

Public Methods

 TGo4BackStore ()
 TGo4BackStore (TGo4BackStoreParameter *par)
virtual ~TGo4BackStore ()
virtual Int_t Store (TGo4EventElement *event)
 Stores eventelement event into the storage implementation. More...

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

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

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

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

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

void Reset ()
 Dynamic list might reset backstore after processing. More...


Static Public Attributes

const Text_t fgcEVBRANCHNAME [] = "Go4EventBranch."
 Standard go4 name of the branch used in all treestore and treesource implementations. More...

const Text_t fgcTREESUF [] = "xTree"
 Standard go4 suffix for tree name. More...

const Int_t fgiMAXAUTOBYTES = 100000000
 Number of bytes for autosave attempt of tree. More...


Private Attributes

TTree * fxTree
Bool_t fbBranchExists
 True if branch already exists. More...

TGo4EventElementfxEvent
 Points to event structure to be filled into branch. More...

Int_t fiSplit
 TBranch splitlevel. More...

Int_t fiBufsize
 buffer size for tree branch. More...

Int_t fiFillCount
 counter of filled events. More...


Detailed Description

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

Definition at line 38 of file TGo4BackStore.h.


Constructor & Destructor Documentation

TGo4BackStore::TGo4BackStore  
 

Definition at line 59 of file TGo4BackStore.cxx.

References fxTree, and TRACE.

TGo4BackStore::TGo4BackStore TGo4BackStoreParameter   par
 

Definition at line 29 of file TGo4BackStore.cxx.

References TGo4Log::Debug(), fgcTREESUF, fgiMAXAUTOBYTES, TGo4EventStore::fguTXTLEN, fxTree, and TRACE.

TGo4BackStore::~TGo4BackStore   [virtual]
 

Definition at line 71 of file TGo4BackStore.cxx.

References fxTree, and TRACE.


Member Function Documentation

Int_t TGo4BackStore::Store TGo4EventElement   event [virtual]
 

Stores eventelement event into the storage implementation.

Implements TGo4EventStore.

Definition at line 102 of file TGo4BackStore.cxx.

References TGo4Log::Debug(), fbBranchExists, fgiMAXAUTOBYTES, TGo4EventStore::fguTXTLEN, fiBufsize, fiSplit, fxEvent, fxTree, and TRACE.

Int_t TGo4BackStore::Store TGo4Parameter   cali [virtual]
 

Saves a calibration object correllated with the current event into the storage.

Reimplemented from TGo4EventStore.

Definition at line 81 of file TGo4BackStore.cxx.

Int_t TGo4BackStore::Store TGo4Condition   conny [virtual]
 

Saves a condition correllated with the current event into the storage.

Reimplemented from TGo4EventStore.

Definition at line 86 of file TGo4BackStore.cxx.

Int_t TGo4BackStore::Store TGo4Fitter   fitter [virtual]
 

Saves a fitter correllated with the current event into the storage.

Reimplemented from TGo4EventStore.

Definition at line 91 of file TGo4BackStore.cxx.

Int_t TGo4BackStore::Store TFolder *    fold [virtual]
 

Saves a folder correllated with the current event into the storage.

Reimplemented from TGo4EventStore.

Definition at line 96 of file TGo4BackStore.cxx.

TTree* TGo4BackStore::GetTree   [inline, virtual]
 

Access to the Tree structure, for framework.

Reimplemented from TGo4EventStore.

Definition at line 75 of file TGo4BackStore.h.

References fxTree.

void TGo4BackStore::Reset   [inline]
 

Dynamic list might reset backstore after processing.

Definition at line 78 of file TGo4BackStore.h.

References fxTree, and TGo4Status::kGo4BackStoreReset.

Referenced by TGo4AnalysisObjectManager::ResetBackStores().


Member Data Documentation

const Text_t TGo4BackStore::fgcEVBRANCHNAME = "Go4EventBranch." [static]
 

Standard go4 name of the branch used in all treestore and treesource implementations.

Definition at line 25 of file TGo4BackStore.cxx.

const Text_t TGo4BackStore::fgcTREESUF = "xTree" [static]
 

Standard go4 suffix for tree name.

Definition at line 24 of file TGo4BackStore.cxx.

Referenced by TGo4BackStore().

const Int_t TGo4BackStore::fgiMAXAUTOBYTES = 100000000 [static]
 

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.

Definition at line 27 of file TGo4BackStore.cxx.

Referenced by Store(), and TGo4BackStore().

TTree* TGo4BackStore::fxTree [private]
 

Definition at line 85 of file TGo4BackStore.h.

Referenced by GetTree(), Reset(), Store(), TGo4BackStore(), and ~TGo4BackStore().

Bool_t TGo4BackStore::fbBranchExists [private]
 

True if branch already exists.

Used for automatic creation of new event branch within Store method.

Definition at line 89 of file TGo4BackStore.h.

Referenced by Store().

TGo4EventElement* TGo4BackStore::fxEvent [private]
 

Points to event structure to be filled into branch.

Definition at line 92 of file TGo4BackStore.h.

Referenced by Store().

Int_t TGo4BackStore::fiSplit [private]
 

TBranch splitlevel.

Definition at line 95 of file TGo4BackStore.h.

Referenced by Store().

Int_t TGo4BackStore::fiBufsize [private]
 

buffer size for tree branch.

Definition at line 98 of file TGo4BackStore.h.

Referenced by Store().

Int_t TGo4BackStore::fiFillCount [private]
 

counter of filled events.

Definition at line 101 of file TGo4BackStore.h.


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 10:56:30 2005 for Go4-v2.10-5 by doxygen1.2.15