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

Allow normal distribution to preserve spare value #1371

Closed sethrj closed 3 months ago

sethrj commented 3 months ago

This allows a normal distribution's "spare" value (from the Box-Muller method) to be reused with different normal distributions. This will be used in scintillation where the wavelength is sampled from a component-dependent gaussian.