Skip to content

bewilson/correct hit idx#18

Merged
benw22022 merged 6 commits intomasterfrom
bewilson/correct-hit-idx
Jan 16, 2026
Merged

bewilson/correct hit idx#18
benw22022 merged 6 commits intomasterfrom
bewilson/correct-hit-idx

Conversation

@benw22022
Copy link
Contributor

Fix small issue in event display notebook
There is a small bit of extra silicon at the edge of the detector - it's slightly larger than what the number of pixels would suggest. From the number of pixels the detector is 12788 * 20.8 = 265990.4 um wide, but we assume a total detector width of 266000 um, so 10 um larger and we can get a total of 12789 colIDs.
Hits here do not actually count as pixel hits and thier indices will overstep the bound of the geometry array which keeps track of the x/y positions
So here we create a mask which removes these edge cases, otherwise the code will crash when indexing geom["pixel_X/Ypos"] (oversteps bounds of array)

Thanks @tobias-boeckh for spotting this!

@benw22022 benw22022 merged commit 316745d into master Jan 16, 2026
2 checks passed
@benw22022 benw22022 deleted the bewilson/correct-hit-idx branch January 16, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants