12 #ifndef ROOT_TBranchProxyDirector
13 #define ROOT_TBranchProxyDirector
33 void ResetReadEntry(TFriendProxy *fp);
35 class TBranchProxyDirector {
41 std::list<Detail::TBranchProxy*> fDirected;
42 std::vector<TFriendProxy*> fFriends;
44 TBranchProxyDirector(
const TBranchProxyDirector &) : fTree(0), fEntry(-1) {;}
45 TBranchProxyDirector& operator=(
const TBranchProxyDirector&) {
return *
this;}
49 TBranchProxyDirector(TTree* tree, Long64_t i);
50 TBranchProxyDirector(TTree* tree, Int_t i);
52 void Attach(Detail::TBranchProxy* p);
53 void Attach(TFriendProxy* f);
54 TH1F* CreateHistogram(
const char *options);
58 Long64_t GetReadEntry()
const {
return fEntry; }
60 TTree* GetTree()
const {
return fTree; };
66 void SetReadEntry(Long64_t entry) {
68 if (!fFriends.empty()) {
69 std::for_each(fFriends.begin(), fFriends.end(), ResetReadEntry);
72 TTree* SetTree(TTree *newtree);