]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG/EMCAL/AliEmcalEsdTpcTrackTask.cxx
protections against failures in deleting event content
[u/mrichter/AliRoot.git] / PWG / EMCAL / AliEmcalEsdTpcTrackTask.cxx
index 7e09f2cb8813c98604dfc4cffcefa2ec9c3f5d32..f79b28755637b586a059bed8a08a4eef1e40f1ff 100644 (file)
@@ -88,6 +88,7 @@ void AliEmcalEsdTpcTrackTask::UserExec(Option_t *)
   }
 
   // add tracks to event if not yet there
+  fTracks->Delete();
   if (!(InputEvent()->FindListObject(fTracksName)))
     InputEvent()->AddObject(fTracks);