Logo ROOT   6.08/07
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 #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 
47  TBranchProxyDirector(const TBranchProxyDirector &) : fTree(0), fEntry(-1) {;}
49 
50  public:
51 
53  TBranchProxyDirector(TTree* tree, Int_t i); // cint has (had?) a problem casting int to long long
54 
55  void Attach(Detail::TBranchProxy* p);
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();
61  void SetReadEntry(Long64_t entry);
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
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
Definition: StringConv.hxx:21
tomato 1-D histogram with a float per channel (see TH1 documentation)}
Definition: TH1.h:575
int Int_t
Definition: RtypesCore.h:41
STL namespace.
std::list< TFriendProxy * > fFriends
std::list< Detail::TBranchProxy * > fDirected
double f(double x)
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:98
Base class for all the proxy object.
Definition: TBranchProxy.h:81