Possiblity to use MC primary vertex in IsSelected
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 Mar 2011 12:55:00 +0000 (12:55 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 Mar 2011 12:55:00 +0000 (12:55 +0000)
PWG3/vertexingHF/AliRDHFCutsD0toKpi.cxx

index c29da4d..01ca312 100644 (file)
@@ -233,7 +233,7 @@ Int_t AliRDHFCutsD0toKpi::IsSelected(TObject* obj,Int_t selectionLevel,AliAODEve
       //recalculate vertex w/o daughters
       AliAODVertex *origownvtx=0x0;
       AliAODVertex *recvtx=0x0;
-      if(fRemoveDaughtersFromPrimary) {
+      if(fRemoveDaughtersFromPrimary && !fUseMCVertex) {
        if(!RecalcOwnPrimaryVtx(d,aod,origownvtx,recvtx)) return 0;
       }
       if(fUseMCVertex) {