]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDEvent.cxx
Modification to SetESDFriends for old esds
[u/mrichter/AliRoot.git] / STEER / AliESDEvent.cxx
index 087ded517a2d618e9a704e19e9e20b24e6d4055b..632629625932ae2bd3b69ea0f1ae708580e80b0c 100644 (file)
@@ -306,6 +306,10 @@ void AliESDEvent::SetESDfriend(const AliESDfriend *ev) {
   //
   if (!ev) return;
 
+  // to be sure that we set the tracks also
+  // in case of old esds 
+  if(fESDOld)CopyFromOldESD();
+
   Int_t ntrk=ev->GetNumberOfTracks();
  
   for (Int_t i=0; i<ntrk; i++) {