Skip to content

Commit 4091c09

Browse files
authored
[PWGLF] Improve TOF nsigma cut check for deuterons (#18671)
1 parent 0862996 commit 4091c09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎PWGLF/Tasks/Resonances/lambdastarproxy.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1739,7 +1739,7 @@ struct Lambdastarproxy {
17391739
// the track has a valid TOF match. Tracks without TOF are kept with
17401740
// the TPC-only decision, avoiding an additional TOF-matching efficiency loss.
17411741
if (isDeuteron) {
1742-
if (std::abs(nsTPC) >= tpcCut) {
1742+
if (!std::isfinite(nsTPC) || std::abs(nsTPC) >= tpcCut) {
17431743
return false;
17441744
}
17451745
if (lstarEnableTOFNsigmaCutDe.value != 0 && hasTof) {

0 commit comments

Comments
 (0)