Skip to content
Snippets Groups Projects
Commit 719a83db authored by Kim Albertsson's avatar Kim Albertsson Committed by Danilo Piparo
Browse files

TMVA: Prevent stack corruption for user supplied trees.

We will be reading the tree, so make sure that the user
did not forget to remove pointers to out-of-scope vars.

The user should *always* call ResetBranchAddresses on their trees
when they are done with them, but in case they forgot this can save
some debugging time at no cost.
parent 360d8172
No related branches found
No related tags found
No related merge requests found
......@@ -288,6 +288,7 @@ void TMVA::DataSetFactory::ChangeToNewTree( TreeInfo& tinfo, const DataSetInfo &
TTree *tr = tinfo.GetTree()->GetTree();
tr->SetBranchStatus("*",1);
tr->ResetBranchAddresses();
Bool_t hasDollar = kFALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment