Celeritas 0.6.0-47+develop.b3cbb238
|
Sample the number of scintillation photons to be generated. More...
#include <ScintillationOffload.hh>
Public Member Functions | |
CELER_FUNCTION | ScintillationOffload (ParticleTrackView const &particle, SimTrackView const &sim, Real3 const &pos, units::MevEnergy energy_deposition, NativeCRef< ScintillationData > const &shared, OffloadPreStepData const &step_data) |
Construct with input parameters. | |
template<class Generator > | |
CELER_FUNCTION GeneratorDistributionData | operator() (Generator &rng) |
Collect the distribution data needed to sample scintillation photons. | |
Sample the number of scintillation photons to be generated.
This populates the GeneratorDistributionData
used by the ScintillationGenerator
to generate optical photons using post-step and cached pre-step data.
The mean number of photons is a product of the energy deposition and a material-dependent yield fraction (photons per MeV). The actual number of photons sampled is determined by sampling:
|
inline |
|
inline |
Collect the distribution data needed to sample scintillation photons.
If no photons are sampled an empty object is returned.