Fix
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Nov 2011 17:26:37 +0000 (17:26 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Nov 2011 17:26:37 +0000 (17:26 +0000)
PWG3/vertexingHF/AliAODRecoDecayHF.cxx

index 4b286dd..7c001fb 100644 (file)
@@ -319,7 +319,7 @@ void AliAODRecoDecayHF::RecalculateImpPars(AliAODVertex *vtxAODNew,AliAODEvent*
   Double_t dz[2],covdz[3];
   for(Int_t i=0; i<GetNDaughters(); i++) {
     AliAODTrack *t = (AliAODTrack*)GetDaughter(i);
-    AliExternalTrackParam etp(t);
+    AliExternalTrackParam etp; etp.CopyFromVTrack(t);
     if(etp.PropagateToDCA(vtxAODNew,aod->GetMagneticField(),3.,dz,covdz)) {
       fd0[i]    = dz[0];
       fd0err[i] = TMath::Sqrt(covdz[0]);