Fix to kaon ID (Fabio)
authorprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 10 Jun 2012 20:12:48 +0000 (20:12 +0000)
committerprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 10 Jun 2012 20:12:48 +0000 (20:12 +0000)
PWGHF/correlationHF/AliHFAssociatedTrackCuts.cxx

index 0fade6b..accb795 100644 (file)
@@ -213,11 +213,11 @@ Bool_t AliHFAssociatedTrackCuts::CheckKaonCompatibility(AliAODTrack * track, Boo
                if(KaonHyp && !PionHyp && !ProtonHyp) isKaon = kTRUE; 
                break;
              }
-          case(2): {
-               isKaon = fPidObj->MakeRawPid(track,3);
+      case(2): {
+               if(fPidObj->MakeRawPid(track,3)>=1) isKaon = kTRUE;
                break;
              }
-          }
+      }
        }
        
        return isKaon;