celeritas-project / celeritas

Celeritas is a new Monte Carlo transport code designed to accelerate scientific discovery in high energy physics by improving detector simulation throughput and energy efficiency using GPUs.
https://celeritas-project.github.io/celeritas/
Other
65 stars 35 forks source link

Improve use of distributions and simplify interactions #1357

Closed sethrj closed 3 months ago

sethrj commented 3 months ago

Following on to #1354 , this PR improves readability of the physics models by adding a new distribution and refactoring some "manual" distributions in terms of other tested distributions. I also found one or two more places that could use a RejectionDistribution, which will also catch any errors we might've made in the envelope assumption (e.g. if the lowest muon cross sections is not the largest one).