File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff 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) {
You can’t perform that action at this time.
0 commit comments