ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 #ifndef ROOT_Rtypes
16 #include "Rtypes.h"
17 #endif
18 
19 #include <list>
20 
21 #ifdef R__OLDHPACC
22 namespace std {
23  using ::list;
24 }
25 #endif
26 
27 class TH1F;
28 class TTree;
29 
30 namespace ROOT {
31 namespace Detail {
32  class TBranchProxy;
33 }
34 
35 namespace Internal{
36  class TFriendProxy;
37 
39 
40  //This class could actually be the selector itself.
41  TTree *fTree; // TTree we are currently looking at.
42  Long64_t fEntry; // Entry currently being read.
43 
44  std::list<Detail::TBranchProxy*> fDirected;
45  std::list<TFriendProxy*> fFriends;
46 
49 
50  public:
51 
53  TBranchProxyDirector(TTree* tree, Int_t i); // cint has (had?) a problem casting int to long long
54 
56  void Attach(TFriendProxy* f);
57  TH1F* CreateHistogram(const char *options);
58  Long64_t GetReadEntry() const { return fEntry; }
59  TTree* GetTree() const { return fTree; };
60  // void Print();
62  TTree* SetTree(TTree *newtree);
63 
64  };
65 
66 } // namespace Internal
67 } // namespace ROOT
68 
69 #endif
long long Long64_t
Definition: RtypesCore.h:69
1-D histogram with a float per channel (see TH1 documentation)}
Definition: TH1.h:570
int Int_t
Definition: RtypesCore.h:41
TFile * f
TH1F * CreateHistogram(const char *options)
std::list< TFriendProxy * > fFriends
std::list< Detail::TBranchProxy * > fDirected
Long64_t entry
tuple tree
Definition: tree.py:24
TBranchProxyDirector(const TBranchProxyDirector &)
TBranchProxyDirector & operator=(const TBranchProxyDirector &)
A TTree object has a header with a name and a title.
Definition: TTree.h:98
void Attach(Detail::TBranchProxy *p)