Corrected index (Antonin)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 17 May 2009 10:06:03 +0000 (10:06 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 17 May 2009 10:06:03 +0000 (10:06 +0000)
ANALYSIS/AliAnalysisTaskESDfilter.cxx

index b300107..506be78 100644 (file)
@@ -618,7 +618,7 @@ void AliAnalysisTaskESDfilter::ConvertESDtoAOD() {
                                                                         esd->GetPrimaryVertex()->GetY(),
                                                                         esd->GetMagneticField())        );
 
-       esdCascade->GetBPxPyPz(momBachAtCascadeVtx[0], momBachAtCascadeVtx[1], momBachAtCascadeVtx[3]);
+       esdCascade->GetBPxPyPz(momBachAtCascadeVtx[0], momBachAtCascadeVtx[1], momBachAtCascadeVtx[2]);
 
        aodCascade = new(cascades[jCascades++]) AliAODcascade(  vCascade,
                                                                esdCascade->Charge(),