From eff09873e5d19ba328b28d38ee53f0f9db371e1a Mon Sep 17 00:00:00 2001 From: Sushanta Tripathy Date: Mon, 9 Nov 2026 17:22:53 +0100 Subject: [PATCH] =?UTF-8?q?Improve=20TOF=20n=CF=83=20cut=20check=20for=20d?= =?UTF-8?q?euterons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update deuteron TOF nσ cut condition to handle non-finite values. --- PWGLF/Tasks/Resonances/lambdastarproxy.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGLF/Tasks/Resonances/lambdastarproxy.cxx b/PWGLF/Tasks/Resonances/lambdastarproxy.cxx index e4fbed337ad..b923950622e 100644 --- a/PWGLF/Tasks/Resonances/lambdastarproxy.cxx +++ b/PWGLF/Tasks/Resonances/lambdastarproxy.cxx @@ -1739,7 +1739,7 @@ struct Lambdastarproxy { // the track has a valid TOF match. Tracks without TOF are kept with // the TPC-only decision, avoiding an additional TOF-matching efficiency loss. if (isDeuteron) { - if (std::abs(nsTPC) >= tpcCut) { + if (!std::isfinite(nsTPC) || std::abs(nsTPC) >= tpcCut) { return false; } if (lstarEnableTOFNsigmaCutDe.value != 0 && hasTof) {