Logo ROOT   6.14/05
Reference Guide
TBranchProxyDirector.h
Go to the documentation of this file.
1 // @(#)root/base:$Id$
2 // Author: Philippe Canal 13/05/2003
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, Rene Brun, Fons Rademakers and al. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TBranchProxyDirector
13 #define ROOT_TBranchProxyDirector
14 
15 #include "Rtypes.h"
16 
17 #include <list>
18 
19 #ifdef R__OLDHPACC
20 namespace std {
21  using ::list;
22 }
23 #endif
24 
25 class TH1F;
26 class TTree;
27 
28 namespace ROOT {
29 namespace Detail {
30  class TBranchProxy;
31 }
32 
33 namespace Internal{
34  class TFriendProxy;
35 
37 
38  //This class could actually be the selector itself.
39  TTree *fTree; // TTree we are currently looking at.
40  Long64_t fEntry; // Entry currently being read.
41 
42  std::list<Detail::TBranchProxy*> fDirected;
43  std::list<TFriendProxy*> fFriends;
44 
45  TBranchProxyDirector(const TBranchProxyDirector &) : fTree(0), fEntry(-1) {;}
47 
48  public:
49 
51  TBranchProxyDirector(TTree* tree, Int_t i); // cint has (had?) a problem casting int to long long
52 
53  void Attach(Detail::TBranchProxy* p);
54  void Attach(TFriendProxy* f);
55  TH1F* CreateHistogram(const char *options);
56  Long64_t GetReadEntry() const { return fEntry; }
57  TTree* GetTree() const { return fTree; };
58  // void Print();
59  void SetReadEntry(Long64_t entry);
60  TTree* SetTree(TTree *newtree);
61 
62  };
63 
64 } // namespace Internal
65 } // namespace ROOT
66 
67 #endif
long long Long64_t
Definition: RtypesCore.h:69
Namespace for new ROOT classes and functions.
Definition: StringConv.hxx:21
1-D histogram with a float per channel (see TH1 documentation)}
Definition: TH1.h:567
#define f(i)
Definition: RSha256.hxx:104
int Int_t
Definition: RtypesCore.h:41
STL namespace.
std::list< TFriendProxy * > fFriends
std::list< Detail::TBranchProxy * > fDirected
TBranchProxyDirector(const TBranchProxyDirector &)
TBranchProxyDirector & operator=(const TBranchProxyDirector &)
Definition: tree.py:1
A TTree object has a header with a name and a title.
Definition: TTree.h:70
Base class for all the proxy object.
Definition: TBranchProxy.h:66