GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4TreeProxy.h
Go to the documentation of this file.
1 // $Id: TGo4TreeProxy.h 1352 2015-01-27 10:03:25Z linev $
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 für 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 TGO4TREESLOT_H
15 #define TGO4TREESLOT_H
16 
17 #include "TGo4Proxy.h"
18 
19 class TTree;
20 
21 class TGo4TreeProxy : public TGo4Proxy {
22  public:
23  TGo4TreeProxy();
24  TGo4TreeProxy(TTree* tree, Bool_t owner = kFALSE);
25  virtual ~TGo4TreeProxy();
26 
27  virtual Bool_t HasSublevels() const { return fTree!=0; }
28 
30  { return (fTree==0) ? 0 : ProduceIter(fTree); }
31 
32  virtual TGo4Access* ProvideAccess(const char* name)
33  { return CreateAccess(fTree, name); }
34 
35  virtual Int_t GetObjectKind();
36  virtual const char* GetContainedClassName();
37 
38  static TGo4Access* CreateAccess(TTree* tree, const char* name);
39  static TGo4LevelIter* ProduceIter(TTree* tree);
40 
41  protected:
42  TTree* fTree;
43  Bool_t fOwner;
44 
46 };
47 
48 #endif
49 
50 
virtual Bool_t HasSublevels() const
Definition: TGo4TreeProxy.h:27
static TGo4LevelIter * ProduceIter(TTree *tree)
virtual Int_t GetObjectKind()
virtual TGo4LevelIter * MakeIter()
Definition: TGo4TreeProxy.h:29
virtual TGo4Access * ProvideAccess(const char *name)
Definition: TGo4TreeProxy.h:32
virtual const char * GetContainedClassName()
ClassDef(TGo4TreeProxy, 1)
virtual ~TGo4TreeProxy()
static TGo4Access * CreateAccess(TTree *tree, const char *name)