Fix in the last caall to CleanOwnPrimaryVertex
authorprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 25 Aug 2011 21:20:50 +0000 (21:20 +0000)
committerprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 25 Aug 2011 21:20:50 +0000 (21:20 +0000)
PWG3/vertexingHF/AliRDHFCutsDstoKKpi.cxx

index b40ee39..f81f052 100644 (file)
@@ -562,9 +562,7 @@ Int_t AliRDHFCutsDstoKKpi::IsSelected(TObject* obj,Int_t selectionLevel, AliAODE
       return 0;
     }
 
-     // unset recalculated primary vertex when not needed any more
-    CleanOwnPrimaryVtx(d,aod,origownvtx);
-    
+   
     if(okDsKKpi){
       Double_t cosPiKPhiRFKKpi=d->CosPiKPhiRFrameKKpi();
       Double_t kincutPiKPhiKKpi=TMath::Abs(cosPiKPhiRFKKpi*cosPiKPhiRFKKpi*cosPiKPhiRFKKpi);
@@ -595,7 +593,9 @@ Int_t AliRDHFCutsDstoKKpi::IsSelected(TObject* obj,Int_t selectionLevel, AliAODE
       return 0;
     }
     
-    
+     // unset recalculated primary vertex when not needed any more
+    CleanOwnPrimaryVtx(d,aod,origownvtx);
+      
     
 
     if(!okDsKKpi){