Bug fix in vertex recalculation
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 7 Apr 2011 10:26:01 +0000 (10:26 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 7 Apr 2011 10:26:01 +0000 (10:26 +0000)
PWG3/vertexingHF/AliRDHFCuts.cxx

index 0eff9b8..3dcf22f 100644 (file)
@@ -804,16 +804,12 @@ Bool_t AliRDHFCuts::RecalcOwnPrimaryVtx(AliAODRecoDecayHF *d,
     AliError("Can not remove daughters from vertex without AOD event");
     return 0;
   }   
+
   AliAODVertex *recvtx=d->RemoveDaughtersFromPrimaryVtx(aod);
   if(!recvtx){
     AliDebug(2,"Removal of daughter tracks failed");
     return kFALSE;
   }
-  if(recvtx->GetNContributors()<1) {
-    AliDebug(2,"Removal of daughter tracks failed");
-    delete recvtx;
-    return kFALSE;
-  }
 
 
   //set recalculed primary vertex