protections against failures in deleting event content
[u/mrichter/AliRoot.git] / PWG / EMCAL / AliEmcalPicoTrackMaker.cxx
index c00fdd1..121f87c 100644 (file)
@@ -104,6 +104,7 @@ void AliEmcalPicoTrackMaker::UserExec(Option_t *)
   }
 
   // add tracks to event if not yet there
+  fTracksOut->Delete();
   if (!(InputEvent()->FindListObject(fTracksOutName))) {
     InputEvent()->AddObject(fTracksOut);
   }