Skip to content
Snippets Groups Projects
Commit 5ec5ecb0 authored by Rene Brun's avatar Rene Brun
Browse files

call TTree::BranchRef by default

git-svn-id: http://root.cern.ch/svn/root/trunk@13449 27541ba8-7e3a-0410-8455-c3a389f83636
parent a901d370
No related branches found
No related tags found
No related merge requests found
// @(#)root/test:$Name: $:$Id: MainEvent.cxx,v 1.27 2003/12/30 18:31:13 brun Exp $
// @(#)root/test:$Name: $:$Id: MainEvent.cxx,v 1.28 2005/01/12 07:50:02 brun Exp $
// Author: Rene Brun 19/01/97
////////////////////////////////////////////////////////////////////////
......@@ -209,6 +209,7 @@ int main(int argc, char **argv)
TTree::SetBranchStyle(branchStyle);
TBranch *branch = tree->Branch("event", &event, bufsize,split);
branch->SetAutoDelete(kFALSE);
tree->BranchRef();
Float_t ptmin = 1;
for (ev = 0; ev < nevent; ev++) {
......
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