Skip to content

Commit eff0987

Browse files
authored
Improve TOF nσ cut check for deuterons
Update deuteron TOF nσ cut condition to handle non-finite values.
1 parent da6fb45 commit eff0987

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)