Skip to content

Commit 9682bc6

Browse files
sdudi123Sandeep  DudiSandeep  Dudi
authored
[PWGUD] PID Selection improved (#9871)
Co-authored-by: Sandeep Dudi <sdudi@Sandeep-MacBook-Pro.local> Co-authored-by: Sandeep Dudi <sdudi@diin2224.diin.unisa.it>
1 parent b7b247b commit 9682bc6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

PWGUD/Tasks/sginclusivePhiKstarSD.cxx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,10 @@ struct SGResonanceAnalyzer {
304304
if (use_tof && pt >= pt2 && pt < pt3 && std::abs(candidate.tpcNSigmaKa()) < nsigmatpc_cut3) {
305305
return true;
306306
}
307-
if (pt > pt3 && use_tof && candidate.hasTOF() && (candidate.tofNSigmaKa() * candidate.tofNSigmaKa() + candidate.tpcNSigmaKa() * candidate.tpcNSigmaKa()) < nsigmatof_cut) {
307+
if (use_tof && pt >= pt3 && !candidate.hasTOF() && std::abs(candidate.tpcNSigmaKa()) < nsigmatpc_cut) {
308+
return true;
309+
}
310+
if (use_tof && candidate.hasTOF() && (candidate.tofNSigmaKa() * candidate.tofNSigmaKa() + candidate.tpcNSigmaKa() * candidate.tpcNSigmaKa()) < nsigmatof_cut) {
308311
return true;
309312
}
310313
if (!use_tof && std::abs(candidate.tpcNSigmaKa()) < nsigmatpc_cut) {
@@ -327,7 +330,10 @@ struct SGResonanceAnalyzer {
327330
if (use_tof && pt >= pt2 && pt < pt3 && std::abs(candidate.tpcNSigmaPi()) < nsigmatpc_cut3) {
328331
return true;
329332
}
330-
if (pt > pt3 && use_tof && candidate.hasTOF() && (candidate.tofNSigmaPi() * candidate.tofNSigmaPi() + candidate.tpcNSigmaPi() * candidate.tpcNSigmaPi()) < nsigmatof_cut) {
333+
if (use_tof && pt >= pt3 && !candidate.hasTOF() && std::abs(candidate.tpcNSigmaPi()) < nsigmatpc_cut) {
334+
return true;
335+
}
336+
if (use_tof && candidate.hasTOF() && (candidate.tofNSigmaPi() * candidate.tofNSigmaPi() + candidate.tpcNSigmaPi() * candidate.tpcNSigmaPi()) < nsigmatof_cut) {
331337
return true;
332338
}
333339
if (!use_tof && std::abs(candidate.tpcNSigmaPi()) < nsigmatpc_cut) {

0 commit comments

Comments
 (0)