celeritas icon indicating copy to clipboard operation
celeritas copied to clipboard

Add safety calculator for visualization

Open sethrj opened this issue 1 year ago • 1 comments

DRAFT because this is an unpolished work in progress: it should be cleaned up and added to celer-geo .

This adds a helper function that lets us evaluate the safety distance on a grid of points (for now, exporting to a JSON lines file) to compare across geometries, mainly to illustrate the current shortcoming but also for testing in the future.

For the following hex pin: xy-mid

Geant4 is correct: g4-pincell-xy-mid

And ORANGE adds internal boundaries: org-pincell-xy-mid

sethrj avatar Oct 08 '24 06:10 sethrj

Test summary

 3 264 files   5 077 suites   3m 30s :stopwatch:  1 526 tests  1 498 :white_check_mark: 27 :zzz: 1 :x: 16 899 runs  16 831 :white_check_mark: 63 :zzz: 5 :x:

For more details on these failures, see this check.

Results for commit 009f574f.

github-actions[bot] avatar Oct 08 '24 06:10 github-actions[bot]

@elliottbiondo if your dives into g4/vg safety code show any weird approximations/inaccuracies, this would be a great way to test them. I don't think I have the bandwidth to fully generalize and integrate this at the moment though.

sethrj avatar Oct 11 '24 17:10 sethrj

Closing since this was a one-off experiment.

sethrj avatar Nov 14 '24 13:11 sethrj