Skip to content

fix: bin number underflow in HoughVertexFinder#5060

Merged
andiwand merged 3 commits intoacts-project:mainfrom
pbalek:fix-houghvtx-zbin
Feb 8, 2026
Merged

fix: bin number underflow in HoughVertexFinder#5060
andiwand merged 3 commits intoacts-project:mainfrom
pbalek:fix-houghvtx-zbin

Conversation

@pbalek
Copy link
Contributor

@pbalek pbalek commented Feb 5, 2026

fix bin nr underflow

--- END COMMIT MESSAGE ---

When filling the Hough image space, we ensured that the initial bin is not negative and final bin is not beyond the axis range. Unfortunately, possibility of the opposite was overlooked. The checks that used to use sp.r() might not be precise enough, and we could end up with negative final bin, which would be transformed into something large by static_cast<std::uint32_t>().
Now, the checks use proper radius. Furthermore, extra check to ensure we don't have negative number in static_cast<std::uint32_t>() was added.
As a bonus, spacepoint class does not need .r() method any more.

@github-actions github-actions bot added this to the next milestone Feb 5, 2026
@github-actions github-actions bot added Component - Core Affects the Core module Vertexing labels Feb 5, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

📊: Physics performance monitoring for 4c57485

Full contents

physmon summary

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 7, 2026

@andiwand andiwand merged commit 54b58dc into acts-project:main Feb 8, 2026
43 of 44 checks passed
@github-actions github-actions bot removed the automerge label Feb 8, 2026
@andiwand andiwand modified the milestones: next, v45.1.0 Feb 13, 2026
JustusRudolph pushed a commit to JustusRudolph/acts that referenced this pull request Feb 23, 2026
JustusRudolph pushed a commit to JustusRudolph/acts that referenced this pull request Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component - Core Affects the Core module Vertexing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants