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

Add safety visualization tool #1614

Merged
merged 18 commits into from
Feb 12, 2025
Merged

Conversation

sethrj
Copy link
Member

@sethrj sethrj commented Feb 7, 2025

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
g4-cmse-xz-mid
and calculated with the known-broken VecGeom 1.2.8:
vg128-cmse-xz-mid
and finally recalculated with the fixed VecGeom 1.2.9
vg-cmse-xz-mid

See #844 (comment)

@sethrj sethrj added enhancement New feature or request geometry Geometry-related features labels Feb 7, 2025
Copy link

github-actions bot commented Feb 7, 2025

Test summary

 4 554 files   6 992 suites   13m 23s ⏱️
 1 713 tests  1 707 ✅  6 💤 0 ❌
24 515 runs  24 431 ✅ 84 💤 0 ❌

Results for commit 663ad0d.

♻️ This comment has been updated with latest results.

@sethrj
Copy link
Member Author

sethrj commented Feb 10, 2025

@jonapost @agheata

Copy link
Contributor

@mrguilima mrguilima left a comment

Choose a reason for hiding this comment

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

LGTM.
Thanks

@sethrj sethrj enabled auto-merge (squash) February 12, 2025 12:35
@sethrj sethrj merged commit 7facca9 into celeritas-project:develop Feb 12, 2025
36 checks passed
@sethrj sethrj deleted the safety-calc branch February 13, 2025 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request geometry Geometry-related features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants