-
Notifications
You must be signed in to change notification settings - Fork 35
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
Add safety visualization tool #1614
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test summary 4 554 files 6 992 suites 13m 23s ⏱️ Results for commit 663ad0d. ♻️ This comment has been updated with latest results. |
mrguilima
approved these changes
Feb 12, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thanks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a utility that writes a JSON file containing safety distance calculations for every point in a 2D slice. I've used it to compare ORANGE safety against VecGeom/Geant4, and also verify https://its.cern.ch/jira/browse/VECGEOM-522 . We can use this to help verify future safety implementations in ORANGE (#990) and the surface-based VecGeom 2.0 (#1412).
Once this is merged I'll add plotting tools to celerpy (currently it resides in a notebook in the benchmark repo).
Here is a "material scan" (raytrace) and safety distance of the CMSE region measured from Geant4:
![xz-mid-g4](https://private-user-images.githubusercontent.com/741229/410955846-3370ba09-9523-45bf-9445-b1db33e6e84a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ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xz-mid](https://private-user-images.githubusercontent.com/741229/410956022-c2e0205f-0bda-4511-8dfe-d44968cf59f2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NTI3MzgsIm5iZiI6MTczOTQ1MjQzOCwicGF0aCI6Ii83NDEyMjkvNDEwOTU2MDIyLWMyZTAyMDVmLTBiZGEtNDUxMS04ZGZlLWQ0NDk2OGNmNTlmMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QxMzEzNThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kYTc4ZDgwNTI5MmIxNTkwNzY2NDc0M2U4YjI2M2UwODZkMWE4MjA0ZGI2ZmM0ZTUwZmMxMTBkNGIwOWM0ZmI3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.7WBgML6MmoV0lBc0idt-mH9YlLWP6ZjPs5HiSt-thY8)
and calculated with the known-broken VecGeom 1.2.8:
and finally recalculated with the fixed VecGeom 1.2.9
See #844 (comment)