GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4BackStore.h
Go to the documentation of this file.
1// $Id$
2//-----------------------------------------------------------------------
3// The GSI Online Offline Object Oriented (Go4) Project
4// Experiment Data Processing at EE department, GSI
5//-----------------------------------------------------------------------
6// Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7// Planckstr. 1, 64291 Darmstadt, Germany
8// Contact: http://go4.gsi.de
9//-----------------------------------------------------------------------
10// This software can be used under the license agreements as stated
11// in Go4License.txt file which is part of the distribution.
12//-----------------------------------------------------------------------
13
14#ifndef TGO4BACKSTORE_H
15#define TGO4BACKSTORE_H
16
17#include "TGo4EventStore.h"
18
19class TTree;
22
32
33 public:
34
36
38
39 virtual ~TGo4BackStore();
40
42 Int_t Store(TGo4EventElement *event) override;
43
45 Int_t Store(TGo4Parameter *cali) override;
46
48 Int_t Store(TGo4Condition *conny) override;
49
51 Int_t Store(TGo4Fitter *fitter) override;
52
54 Int_t Store(TFolder *fold) override;
55
57 TTree *GetTree() override { return fxTree; }
58
62 void Reset(Bool_t onlyclearflag = kFALSE);
63
66 static const char *fgcEVBRANCHNAME;
67
69 static const char *fgcTREESUF;
70
73 static const Int_t fgiMAXAUTOBYTES;
74
75 private:
76
77 TTree *fxTree{nullptr};
78
81 Bool_t fbBranchExists{kFALSE};
82
85
87 Int_t fiSplit{0};
88
90 Int_t fiBufsize{0};
91
93 Int_t fiFillCount{0};
94
95 ClassDefOverride(TGo4BackStore,1)
96};
97
98#endif //TGO4BACKSTORE_H
Event store to keep the last n events in a TTree which is not saved to a file.
virtual ~TGo4BackStore()
Int_t Store(TGo4EventElement *event) override
Stores eventelement event into the storage implementation.
Int_t fiSplit
TBranch splitlevel.
static const char * fgcEVBRANCHNAME
Standard go4 name of the branch used in all treestore and treesource implementations.
TTree * GetTree() override
Access to the Tree structure, for framework.
Bool_t fbBranchExists
True if branch already exists.
static const char * fgcTREESUF
Standard go4 suffix for tree name.
TGo4EventElement * fxEvent
Points to event structure to be filled into branch.
Int_t fiBufsize
buffer size for tree branch.
Int_t fiFillCount
counter of filled events.
static const Int_t fgiMAXAUTOBYTES
Number of bytes for autosave attempt of tree.
void Reset(Bool_t onlyclearflag=kFALSE)
Dynamic list might reset backstore after processing.
Go4 condition class.
The abstract base class for the data elements of which the unpacked events (or detector structure dat...
Central class of Go4Fit package.
Definition TGo4Fitter.h:38
Base class for all parameter aggregations, e.g.