Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix underflow/overflow in EcalVeto's closest cell calc #1410

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

tvami
Copy link
Member

@tvami tvami commented Aug 26, 2024

I am updating ldmx-sw, here are the details.

What are the issues that this addresses?

Part of the #1166

As for the source of the issue, the recoilPos is already outside the ECAL, and that's calculated at the SP. However the SP is bigger then the ECAL, so we can have hits that are on the ECAL SP, but are not on the real ECAL. This PR deals with those hits, in a reasonable way with the X position. But to be extra sure we dont reach the underflow and overflow in the mapsx/mapsy, I also edited the while loop

Check List

  • I successfully compiled ldmx-sw with my developments
  • I ran my developments and the following shows that they are successful.

Compiling with ASAN build

ldmx cmake -B build -S . -DENABLE_SANITIZER_ADDRESS=ON
ldmx cmake --build build --target install -- -j$(nproc)
<run the ecal pn validation config with seed=1 and at event 142 you'll run into one issue>

the problem is gone.

Copy link
Member

@tomeichlersmith tomeichlersmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Thank you 🎉

@tvami tvami merged commit 2e2dbd3 into trunk Aug 26, 2024
15 of 16 checks passed
@tvami tvami deleted the iss1166-ecal-mapsx-bug branch August 26, 2024 20:48
@tvami tvami mentioned this pull request Aug 26, 2024
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants