Add check that D0 candidate passed the filtering as D0 and not ass D*( A. Rossi)
authorprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 16 Sep 2012 22:37:47 +0000 (22:37 +0000)
committerprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 16 Sep 2012 22:37:47 +0000 (22:37 +0000)
PWGHF/vertexingHF/AliRDHFCutsD0toKpi.cxx

index 552ab97..4df533a 100644 (file)
@@ -250,6 +250,7 @@ Int_t AliRDHFCutsD0toKpi::IsSelected(TObject* obj,Int_t selectionLevel,AliAODEve
   }
   //PrintAll();
   AliAODRecoDecayHF2Prong* d=(AliAODRecoDecayHF2Prong*)obj;
+  if(!d->HasSelectionBit(AliRDHFCutsD0toKpi::kD0toKpiCuts))return 0;
 
   if(!d){
     cout<<"AliAODRecoDecayHF2Prong null"<<endl;