including possibility of selecting negatively charged kaons and pions
authormaszyman <maszyman@cern.ch>
Tue, 28 Oct 2014 14:44:09 +0000 (15:44 +0100)
committermivanov <marian.ivanov@cern.ch>
Tue, 28 Oct 2014 21:32:48 +0000 (22:32 +0100)
PWGCF/FEMTOSCOPY/AliFemto/AliFemtoEventReaderESDChainKine.cxx

index e003528..8187afb 100644 (file)
@@ -823,13 +823,13 @@ AliFemtoEvent* AliFemtoEventReaderESDChainKine::ReturnHbtEvent()
     //if we use hidden info we want to have match between sim data and ESD
 
     bool trackAccept = true;
-    if (isKaonAnalysis == true && trackCopy->GetPDGPid() != 321) {
+    if (isKaonAnalysis == true && TMath::Abs(trackCopy->GetPDGPid()) != 321) {
       trackAccept = false;
     }
     if (isProtonAnalysis == true && TMath::Abs(trackCopy->GetPDGPid()) != 2212) {
       trackAccept = false;
     }
-    if (isPionAnalysis == true && trackCopy->GetPDGPid() != 211) {
+    if (isPionAnalysis == true && TMath::Abs(trackCopy->GetPDGPid()) != 211) {
       trackAccept = false;
     }