GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
TGo4BackStore Class Reference

#include <TGo4BackStore.h>

+ Inheritance diagram for TGo4BackStore:

Public Member Functions

 TGo4BackStore ()
 
 TGo4BackStore (TGo4BackStoreParameter *par)
 
virtual ~TGo4BackStore ()
 
virtual Int_t Store (TGo4EventElement *event)
 
virtual Int_t Store (TGo4Parameter *cali)
 
virtual Int_t Store (TGo4Condition *conny)
 
virtual Int_t Store (TGo4Fitter *fitter)
 
virtual Int_t Store (TFolder *fold)
 
virtual TTree * GetTree ()
 
void Reset (Bool_t onlyclearflag=kFALSE)
 
- Public Member Functions inherited from TGo4EventStore
 TGo4EventStore ()
 
 TGo4EventStore (const char *name)
 
virtual ~TGo4EventStore ()
 
virtual void Clear (Option_t *opt="")
 

Static Public Attributes

static const char * fgcEVBRANCHNAME = "Go4EventBranch."
 
static const char * fgcTREESUF = "xTree"
 
static const Int_t fgiMAXAUTOBYTES = 100000000
 

Private Attributes

TTree * fxTree
 
Bool_t fbBranchExists
 
TGo4EventElementfxEvent
 
Int_t fiSplit
 
Int_t fiBufsize
 
Int_t fiFillCount
 

Additional Inherited Members

- Protected Types inherited from TGo4EventStore
enum  { fguTXTLEN = 256 }
 

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 30 of file TGo4BackStore.h.

Constructor & Destructor Documentation

TGo4BackStore::TGo4BackStore ( )

Definition at line 30 of file TGo4BackStore.cxx.

References GO4TRACE.

TGo4BackStore::TGo4BackStore ( TGo4BackStoreParameter par)
TGo4BackStore::~TGo4BackStore ( )
virtual

Definition at line 83 of file TGo4BackStore.cxx.

References fxTree, and GO4TRACE.

Member Function Documentation

virtual TTree* TGo4BackStore::GetTree ( )
inlinevirtual

Access to the Tree structure, for framework

Reimplemented from TGo4EventStore.

Definition at line 56 of file TGo4BackStore.h.

References fxTree.

void TGo4BackStore::Reset ( Bool_t  onlyclearflag = kFALSE)

Dynamic list might reset backstore after processing. If onlyclearflag is true, do not reset tree, but just unmark the "backstore was reset" bit.

Definition at line 90 of file TGo4BackStore.cxx.

References fxTree, and TGo4Status::kGo4BackStoreReset.

Referenced by TGo4AnalysisObjectManager::ResetBackStores().

Int_t TGo4BackStore::Store ( TGo4EventElement event)
virtual

Stores eventelement event into the storage implementation.

Implements TGo4EventStore.

Definition at line 127 of file TGo4BackStore.cxx.

References TGo4Log::Debug(), fbBranchExists, fgiMAXAUTOBYTES, fiBufsize, fiSplit, fxEvent, fxTree, GO4TRACE, and TGo4EventElement::makeBranch().

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 106 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 111 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 116 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 121 of file TGo4BackStore.cxx.

Member Data Documentation

Bool_t TGo4BackStore::fbBranchExists
private

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

Definition at line 80 of file TGo4BackStore.h.

Referenced by Store().

const char * TGo4BackStore::fgcEVBRANCHNAME = "Go4EventBranch."
static

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

Definition at line 65 of file TGo4BackStore.h.

const char * TGo4BackStore::fgcTREESUF = "xTree"
static

Standard go4 suffix for tree name

Definition at line 68 of file TGo4BackStore.h.

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 72 of file TGo4BackStore.h.

Referenced by Store(), and TGo4BackStore().

Int_t TGo4BackStore::fiBufsize
private

buffer size for tree branch.

Definition at line 89 of file TGo4BackStore.h.

Referenced by Store(), and TGo4BackStore().

Int_t TGo4BackStore::fiFillCount
private

counter of filled events.

Definition at line 92 of file TGo4BackStore.h.

Int_t TGo4BackStore::fiSplit
private

TBranch splitlevel.

Definition at line 86 of file TGo4BackStore.h.

Referenced by Store(), and TGo4BackStore().

TGo4EventElement* TGo4BackStore::fxEvent
private

Points to event structure to be filled into branch.

Definition at line 83 of file TGo4BackStore.h.

Referenced by Store().

TTree* TGo4BackStore::fxTree
private

Definition at line 76 of file TGo4BackStore.h.

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


The documentation for this class was generated from the following files: