Skip to content

Commit

Permalink
protect TrackSelector against eta=nan
Browse files Browse the repository at this point in the history
  • Loading branch information
timadye authored Oct 25, 2024
1 parent 645a8d1 commit c53c52a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/include/Acts/TrackFinding/TrackSelector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,8 @@ bool TrackSelector::isValidTrack(const track_proxy_t& track) const {

const Config* cutsPtr{nullptr};
if (!m_isUnbinned) {
if (absEta() < m_cfg.absEtaEdges.front() ||
_absEta >= m_cfg.absEtaEdges.back()) {
if (!(absEta() >= m_cfg.absEtaEdges.front() &&
_absEta < m_cfg.absEtaEdges.back())) {
return false;
}
cutsPtr = &m_cfg.getCuts(_eta);
Expand Down

0 comments on commit c53c52a

Please sign in to comment.