]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AOD/AliAODEvent.cxx
For some reason, the flag gROOT->fMustClean was set making ROOT call TList::Recursive...
[u/mrichter/AliRoot.git] / STEER / AOD / AliAODEvent.cxx
index f4d2237d4ec903436981fac214e2f7b0fb2edec5..f1b7e6969a71a07fbfde0de2de4dec4c232d5df7 100644 (file)
@@ -419,7 +419,8 @@ void AliAODEvent::ResetStd(Int_t trkArrSize,
                           )
 {
   // deletes content of standard arrays and resets size 
-  
+  // The line below added to avoid very costly and un-needed TROOT::RecursiveRemove (A.G.)
+  gROOT->SetMustClean(kFALSE);  
   if (fTracks) {
     fTracks->Delete();
     if (trkArrSize > fTracks->GetSize())