GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
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:

Public Member Functions

 TGo4BackStore ()
 
 TGo4BackStore (TGo4BackStoreParameter *par)
 
virtual ~TGo4BackStore ()
 
TTree * GetTree () override
 Access to the Tree structure, for framework.
 
void Reset (Bool_t onlyclearflag=kFALSE)
 Dynamic list might reset backstore after processing.
 
Int_t Store (TFolder *fold) override
 Saves a folder correlated with the current event into the storage.
 
Int_t Store (TGo4Condition *conny) override
 Saves a condition correlated with the current event into the storage.
 
Int_t Store (TGo4EventElement *event) override
 Stores eventelement event into the storage implementation.
 
Int_t Store (TGo4Fitter *fitter) override
 Saves a fitter correlated with the current event into the storage.
 
Int_t Store (TGo4Parameter *cali) override
 Saves a calibration object correlated with the current event into the storage.
 
- Public Member Functions inherited from TGo4EventStore
 TGo4EventStore ()
 
 TGo4EventStore (const char *name)
 
virtual ~TGo4EventStore ()
 
void Clear (Option_t *opt="") override
 We overwrite the default TNamed::Clear that would erase our name and title!
 

Static Public Attributes

static const char * fgcEVBRANCHNAME = "Go4EventBranch."
 Standard go4 name of the branch used in all treestore and treesource implementations.
 
static const char * fgcTREESUF = "xTree"
 Standard go4 suffix for tree name.
 
static const Int_t fgiMAXAUTOBYTES = 100000000
 Number of bytes for autosave attempt of tree.
 

Private Attributes

Bool_t fbBranchExists {kFALSE}
 True if branch already exists.
 
Int_t fiBufsize {0}
 buffer size for tree branch.
 
Int_t fiFillCount {0}
 counter of filled events.
 
Int_t fiSplit {0}
 TBranch splitlevel.
 
TGo4EventElementfxEvent {nullptr}
 Points to event structure to be filled into branch.
 
TTree * fxTree {nullptr}
 

Additional Inherited Members

- Protected Types inherited from TGo4EventStore
enum  { fguTXTLEN = 256 }
 text length 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 31 of file TGo4BackStore.h.

Constructor & Destructor Documentation

◆ TGo4BackStore() [1/2]

TGo4BackStore::TGo4BackStore ( )

◆ TGo4BackStore() [2/2]

◆ ~TGo4BackStore()

TGo4BackStore::~TGo4BackStore ( )
virtual

Definition at line 83 of file TGo4BackStore.cxx.

References fxTree, and GO4TRACE.

Member Function Documentation

◆ GetTree()

TTree * TGo4BackStore::GetTree ( )
inlineoverridevirtual

Access to the Tree structure, for framework.

Reimplemented from TGo4EventStore.

Definition at line 57 of file TGo4BackStore.h.

References fxTree.

◆ Reset()

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().

◆ Store() [1/5]

Int_t TGo4BackStore::Store ( TFolder * fold)
overridevirtual

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

Reimplemented from TGo4EventStore.

Definition at line 117 of file TGo4BackStore.cxx.

◆ Store() [2/5]

Int_t TGo4BackStore::Store ( TGo4Condition * conny)
overridevirtual

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

Reimplemented from TGo4EventStore.

Definition at line 107 of file TGo4BackStore.cxx.

◆ Store() [3/5]

Int_t TGo4BackStore::Store ( TGo4EventElement * event)
overridevirtual

Stores eventelement event into the storage implementation.

Implements TGo4EventStore.

Definition at line 123 of file TGo4BackStore.cxx.

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

◆ Store() [4/5]

Int_t TGo4BackStore::Store ( TGo4Fitter * fitter)
overridevirtual

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

Reimplemented from TGo4EventStore.

Definition at line 112 of file TGo4BackStore.cxx.

◆ Store() [5/5]

Int_t TGo4BackStore::Store ( TGo4Parameter * cali)
overridevirtual

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

Reimplemented from TGo4EventStore.

Definition at line 102 of file TGo4BackStore.cxx.

Field Documentation

◆ fbBranchExists

Bool_t TGo4BackStore::fbBranchExists {kFALSE}
private

True if branch already exists.

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

Definition at line 81 of file TGo4BackStore.h.

Referenced by TGo4BackStore(), TGo4BackStore(), and Store().

◆ fgcEVBRANCHNAME

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

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

Definition at line 66 of file TGo4BackStore.h.

◆ fgcTREESUF

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

Standard go4 suffix for tree name.

Definition at line 69 of file TGo4BackStore.h.

Referenced by TGo4BackStore().

◆ fgiMAXAUTOBYTES

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

Referenced by TGo4BackStore(), and Store().

◆ fiBufsize

Int_t TGo4BackStore::fiBufsize {0}
private

buffer size for tree branch.

Definition at line 90 of file TGo4BackStore.h.

Referenced by TGo4BackStore(), TGo4BackStore(), and Store().

◆ fiFillCount

Int_t TGo4BackStore::fiFillCount {0}
private

counter of filled events.

Definition at line 93 of file TGo4BackStore.h.

Referenced by TGo4BackStore(), and TGo4BackStore().

◆ fiSplit

Int_t TGo4BackStore::fiSplit {0}
private

TBranch splitlevel.

Definition at line 87 of file TGo4BackStore.h.

Referenced by TGo4BackStore(), TGo4BackStore(), and Store().

◆ fxEvent

TGo4EventElement* TGo4BackStore::fxEvent {nullptr}
private

Points to event structure to be filled into branch.

Definition at line 84 of file TGo4BackStore.h.

Referenced by TGo4BackStore(), TGo4BackStore(), and Store().

◆ fxTree

TTree* TGo4BackStore::fxTree {nullptr}
private

Definition at line 77 of file TGo4BackStore.h.

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


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