-
- Downloads
Enhance SetBranchAddress so that the curent recommended code:
chain->SetBranchAddres(branchname,&userdata); // once per chain .... branchptr = chain->GetBranch(branchname); // once per tree in the chain can be replaced by: chain->SetBranchAddres(branchname,&userdata,&branchptr); // once per chain As a result, branchptr will be either set to 0 when the branch does not exist or the tree is not loaded yet and will be 'refreshed' automatically everytime the chain loads a new tree. MakeClass and MakeSelector have been updated to take advantage of this new feature. This removed most the code from the Notify method. git-svn-id: http://root.cern.ch/svn/root/trunk@15536 27541ba8-7e3a-0410-8455-c3a389f83636
Showing
- tree/inc/TChain.h 4 additions, 3 deletionstree/inc/TChain.h
- tree/inc/TChainElement.h 6 additions, 1 deletiontree/inc/TChainElement.h
- tree/inc/TTree.h 8 additions, 7 deletionstree/inc/TTree.h
- tree/src/ManualTree2.cxx 81 additions, 106 deletionstree/src/ManualTree2.cxx
- tree/src/ManualTree2.h 12 additions, 8 deletionstree/src/ManualTree2.h
- tree/src/ManualTree2Body.h 13 additions, 4 deletionstree/src/ManualTree2Body.h
- tree/src/TChain.cxx 25 additions, 6 deletionstree/src/TChain.cxx
- tree/src/TChainElement.cxx 3 additions, 3 deletionstree/src/TChainElement.cxx
- tree/src/TTree.cxx 18 additions, 6 deletionstree/src/TTree.cxx
- treeplayer/src/TTreePlayer.cxx 8 additions, 52 deletionstreeplayer/src/TTreePlayer.cxx
- tutorials/h1analysis.h 152 additions, 304 deletionstutorials/h1analysis.h
Loading
Please register or sign in to comment