diff --git a/test/MainEvent.cxx b/test/MainEvent.cxx index 164e1be723f59f8d21434780aef486aad7d413af..c5916453f3f123b5b74dd92ca611223ea6820720 100644 --- a/test/MainEvent.cxx +++ b/test/MainEvent.cxx @@ -1,4 +1,4 @@ -// @(#)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++) {