Copy/paste error fixed (Boris)
[u/mrichter/AliRoot.git] / ANALYSIS / AliAODv0.cxx
index e153154c23507f2222af8353ad9b5de80854df58..164628adcbd4d924265fcdc4689d52507f0124a6 100644 (file)
@@ -95,7 +95,7 @@ void AliAODv0::Fill(AliESDv0* rV0Vertex ,AliESD* rEvent){
   if(nTrack) nTrack->GetImpactParameters(tDcaNegToPrimVertex[0],tDcaNegToPrimVertex[1]);
   else { tDcaNegToPrimVertex[0]=999.;  tDcaNegToPrimVertex[1]=999.;}
 
-  fDcaNegToPrimVertex = TMath::Sqrt(tDcaNegToPrimVertex[0]*tDcaNegToPrimVertex[0]+tDcaNegToPrimVertex[1]*tDcaPosToPrimVertex[1]);
+  fDcaNegToPrimVertex = TMath::Sqrt(tDcaNegToPrimVertex[0]*tDcaNegToPrimVertex[0]+tDcaNegToPrimVertex[1]*tDcaNegToPrimVertex[1]);
 }
 
 void AliAODv0::ResetV0(){