GSI Object Oriented Online Offline (Go4)
GO4-6.4.0
Loading...
Searching...
No Matches
Go4EventServer
TGo4TreeStore.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 TGO4TREESTORE_H
15
#define TGO4TREESTORE_H
16
17
#include "
TGo4EventStore.h
"
18
19
class
TFile;
20
class
TTree;
21
class
TBranch;
22
class
TGo4MainTree
;
23
class
TGo4EventElement
;
24
class
TGo4Parameter
;
25
class
TGo4EventCalibration
;
26
class
TGo4TreeStoreParameter
;
27
41
class
TGo4TreeStore
:
public
TGo4EventStore
{
42
public
:
43
44
TGo4TreeStore
(
const
char
*name,
45
TGo4EventElement
*event,
46
Int_t splitlevel = 1,
47
Int_t bufsize = 64000,
48
const
char
*filename =
nullptr
,
49
Int_t compression = 5);
50
51
TGo4TreeStore
();
52
53
TGo4TreeStore
(
TGo4TreeStoreParameter
* par,
TGo4EventElement
*event);
54
55
virtual
~TGo4TreeStore
();
56
58
using
TGo4EventStore::Store
;
59
62
Int_t
Store
(
TGo4EventElement
*event)
override
;
63
65
void
SetCompression
(Int_t comp);
66
69
Int_t
Store
(
TGo4Parameter
*cali)
override
;
70
72
static
const
char
*
fgcFILESUF
;
73
74
private
:
75
78
TFile *
fxFile
{
nullptr
};
79
83
TGo4MainTree
*
fxSingletonTree
{
nullptr
};
84
86
TTree *
fxTree
{
nullptr
};
87
89
TBranch *
fxBranch
{
nullptr
};
90
92
TGo4EventElement
*
fxEvent
{
nullptr
};
93
95
TGo4EventCalibration
*
fxCalibration
{
nullptr
};
96
98
TString
fcEventClass
;
99
101
Int_t
fiSplit
{0};
102
104
Int_t
fiBufsize
{0};
105
106
ClassDefOverride(
TGo4TreeStore
,1)
107
};
108
109
#endif
//TGO4TREESTORE_H
TGo4EventStore.h
TGo4EventCalibration
Data object for calibration of the input event.
Definition
TGo4EventCalibration.h:24
TGo4EventElement
The abstract base class for the data elements of which the unpacked events (or detector structure dat...
Definition
TGo4EventElement.h:39
TGo4EventStore::TGo4EventStore
TGo4EventStore()
Definition
TGo4EventStore.cxx:25
TGo4EventStore::Store
virtual Int_t Store(TGo4EventElement *event)=0
Stores eventelement event into the storage implementation.
TGo4MainTree
Singleton containing and managing the main tree of the go4 analysis.
Definition
TGo4MainTree.h:33
TGo4Parameter
Base class for all parameter aggregations, e.g.
Definition
TGo4Parameter.h:29
TGo4TreeStoreParameter
Tree store parameter.
Definition
TGo4TreeStoreParameter.h:23
TGo4TreeStore
Go4 TTree storage.
Definition
TGo4TreeStore.h:41
TGo4TreeStore::SetCompression
void SetCompression(Int_t comp)
Set the file compression level.
Definition
TGo4TreeStore.cxx:162
TGo4TreeStore::fcEventClass
TString fcEventClass
Class name of the event associated with this store.
Definition
TGo4TreeStore.h:98
TGo4TreeStore::~TGo4TreeStore
virtual ~TGo4TreeStore()
Definition
TGo4TreeStore.cxx:116
TGo4TreeStore::fxFile
TFile * fxFile
Optional file where our branches are located.
Definition
TGo4TreeStore.h:78
TGo4TreeStore::fxBranch
TBranch * fxBranch
The branch representing our store.
Definition
TGo4TreeStore.h:89
TGo4TreeStore::Store
Int_t Store(TGo4EventElement *event) override
Stores eventelement event into the storage implementation.
Definition
TGo4TreeStore.cxx:122
TGo4TreeStore::fxCalibration
TGo4EventCalibration * fxCalibration
Points to calibration structure to be filled into branch.
Definition
TGo4TreeStore.h:95
TGo4TreeStore::TGo4TreeStore
TGo4TreeStore()
Definition
TGo4TreeStore.cxx:110
TGo4TreeStore::fgcFILESUF
static const char * fgcFILESUF
Standard suffix for file name.
Definition
TGo4TreeStore.h:72
TGo4TreeStore::fiSplit
Int_t fiSplit
TBranch splitlevel.
Definition
TGo4TreeStore.h:101
TGo4TreeStore::TGo4TreeStore
TGo4TreeStore(const char *name, TGo4EventElement *event, Int_t splitlevel=1, Int_t bufsize=64000, const char *filename=nullptr, Int_t compression=5)
Definition
TGo4TreeStore.cxx:28
TGo4TreeStore::fxSingletonTree
TGo4MainTree * fxSingletonTree
Reference to external tree singleton wrapper instance.
Definition
TGo4TreeStore.h:83
TGo4TreeStore::fxTree
TTree * fxTree
Reference to the external main tree.
Definition
TGo4TreeStore.h:86
TGo4TreeStore::fiBufsize
Int_t fiBufsize
buffer size for tree branch.
Definition
TGo4TreeStore.h:104
TGo4TreeStore::fxEvent
TGo4EventElement * fxEvent
Points to event structure to be filled into branch.
Definition
TGo4TreeStore.h:92
Generated by
1.13.2