Bug fix (Andrea)
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Mar 2008 15:06:40 +0000 (15:06 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Mar 2008 15:06:40 +0000 (15:06 +0000)
PWG3/AliAnalysisVertexingHF.cxx

index ebad023..a819332 100644 (file)
@@ -234,7 +234,10 @@ void AliAnalysisVertexingHF::FindCandidates(AliESDEvent *esd,TTree treeout[])
       AliESDVertex *vertexp1n1 = ReconstructSecondaryVertex(twoTrackArray1);
       if(vertexp1n1->GetNContributors()!=2) { 
        if(fDebug) printf("two-track vertexing failed\n"); 
-       negtrack1=0; continue; 
+       twoTrackArray1->Clear();
+       delete vertexp1n1; 
+       negtrack1=0; 
+       continue; 
       }
       if(fD0toKpi || fJPSItoEle) { 
        io2Prong = Make2Prong(twoTrackArray1,esd,vertexp1n1,dcap1n1,okD0,okJPSI);