@@ -182,11 +182,11 @@ struct femtoUniversePairTaskTrackPhi {
182182
183183 bool IsProtonRejected (float mom, float nsigmaTPCPi, float nsigmaTOFPi, float nsigmaTPCK, float nsigmaTOFK)
184184 {
185+ if (mom < 0.5 )
186+ return true ;
185187 if (mom > 0.5 ) {
186188 if (TMath::Hypot (nsigmaTOFPi, nsigmaTPCPi) < ConfBothTracks.ConfNsigmaRejectPion ) {
187189 return true ;
188- } else if (TMath::Hypot (nsigmaTOFK, nsigmaTPCK) < ConfBothTracks.ConfNsigmaRejectKaon ) {
189- return true ;
190190 } else {
191191 return false ;
192192 }
@@ -236,10 +236,12 @@ struct femtoUniversePairTaskTrackPhi {
236236
237237 bool IsKaonRejected (float mom, float nsigmaTPCPr, float nsigmaTOFPr, float nsigmaTPCPi, float nsigmaTOFPi)
238238 {
239- if (mom > 0.5 ) {
240- if (TMath::Hypot (nsigmaTOFPi, nsigmaTPCPi ) < ConfBothTracks.ConfNsigmaRejectPion ) {
239+ if (mom < 0.5 ){
240+ if (TMath::Hypot (nsigmaTOFPr, nsigmaTPCPr ) < ConfBothTracks.ConfNsigmaRejectProton ) {
241241 return true ;
242- } else if (TMath::Hypot (nsigmaTOFPr, nsigmaTPCPr) < ConfBothTracks.ConfNsigmaRejectProton ) {
242+ }
243+ } else if (mom > 0.5 ) {
244+ if (TMath::Hypot (nsigmaTOFPi, nsigmaTPCPi) < ConfBothTracks.ConfNsigmaRejectPion ) {
243245 return true ;
244246 } else {
245247 return false ;
@@ -271,10 +273,12 @@ struct femtoUniversePairTaskTrackPhi {
271273
272274 bool IsPionRejected (float mom, float nsigmaTPCPr, float nsigmaTOFPr, float nsigmaTPCK, float nsigmaTOFK)
273275 {
274- if (mom > 0.5 ) {
275- if (TMath::Hypot (nsigmaTOFK, nsigmaTPCK ) < ConfBothTracks.ConfNsigmaRejectKaon ) {
276+ if (mom < 0.5 ){
277+ if (TMath::Hypot (nsigmaTOFPr, nsigmaTPCPr ) < ConfBothTracks.ConfNsigmaRejectProton ) {
276278 return true ;
277- } else if (TMath::Hypot (nsigmaTOFPr, nsigmaTPCPr) < ConfBothTracks.ConfNsigmaRejectProton ) {
279+ }
280+ } else if (mom > 0.5 ) {
281+ if (TMath::Hypot (nsigmaTOFK, nsigmaTPCK) < ConfBothTracks.ConfNsigmaRejectKaon ) {
278282 return true ;
279283 } else {
280284 return false ;
0 commit comments