GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TXXXStore.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 TEXAMPLEUSERSTORE_H
15 #define TEXAMPLEUSERSTORE_H
16 
17 #include "TGo4EventStore.h"
18 
19 class TTree;
20 class TFile;
22 class TXXXEvent;
23 
28 class TXXXStore : public TGo4EventStore {
29 
30  public:
31 
32  TXXXStore();
33 
35 
36  virtual ~TXXXStore();
37 
39  Int_t Store(TGo4EventElement *event) override;
40 
42  Int_t Store(TGo4Parameter *) override { return 0; }
43  Int_t Store(TGo4Condition *) override { return 0; }
44  Int_t Store(TGo4Fitter *) override { return 0; }
45  Int_t Store(TFolder *) override { return 0; }
46 
48  TTree *GetTree() override { return fxTree; }
49 
50  private:
51 
52  TFile *fxFile{nullptr};
53  TTree *fxTree{nullptr};
54  TXXXEvent *fxEvent{nullptr};
55  Bool_t fbBranchExists{kFALSE};
56 
57  ClassDefOverride(TXXXStore,1)
58 };
59 
60 #endif //TEXAMPLEUSERSTORE_H
TTree * GetTree() override
Definition: TXXXStore.h:48
TFile * fxFile
Definition: TXXXStore.h:52
Int_t Store(TGo4Fitter *) override
Definition: TXXXStore.h:44
Bool_t fbBranchExists
current event
Definition: TXXXStore.h:55
Int_t Store(TGo4EventElement *event) override
Definition: TXXXStore.cxx:69
TTree * fxTree
file
Definition: TXXXStore.h:53
Int_t Store(TFolder *) override
Definition: TXXXStore.h:45
TXXXEvent * fxEvent
tree
Definition: TXXXStore.h:54
Int_t Store(TGo4Parameter *) override
Definition: TXXXStore.h:42
Int_t Store(TGo4Condition *) override
Definition: TXXXStore.h:43
virtual ~TXXXStore()
Definition: TXXXStore.cxx:57