GSI Object Oriented Online Offline (Go4) GO4-6.4.5
Loading...
Searching...
No Matches
TGo4TreeSource.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 TGO4TREESOURCE_H
15#define TGO4TREESOURCE_H
16
17#include "TGo4EventSource.h"
18
20class TGo4MainTree;
22class TBranch;
23class TTree;
24
33class TGo4TreeSource : public TGo4EventSource {
34 public:
36
37 TGo4TreeSource(const char *name);
38
39 virtual ~TGo4TreeSource();
40
42
46 Bool_t BuildEvent(TGo4EventElement *dest) override;
47
48 private:
49
54
56 TTree *fxTree{nullptr};
57
59 TBranch *fxBranch{nullptr};
60
61 Int_t Open();
62
63 ClassDefOverride(TGo4TreeSource,1)
64};
65
66#endif //TGO4TREESOURCE_H
The abstract base class for the data elements of which the unpacked events (or detector structure dat...
Singleton containing and managing the main tree of the go4 analysis.
Raw event source which reads entries from a root TTree.
TGo4MainTree * fxSingletonTree
Reference to external tree singleton wrapper instance.
Bool_t BuildEvent(TGo4EventElement *dest) override
Fill the destination event dest from the tree.
TGo4TreeSource(const char *name)
TBranch * fxBranch
The branch representing our source.
virtual ~TGo4TreeSource()
TGo4TreeSource(TGo4TreeSourceParameter *par)
TTree * fxTree
Reference to external root tree singleton.