Celeritas  0.5.0-56+6b053cd
Public Member Functions | List of all members
celeritas::CerenkovOffload Class Reference

Sample the number of Cerenkov photons to be generated. More...

#include <CerenkovOffload.hh>

Public Member Functions

CELER_FUNCTION CerenkovOffload (ParticleTrackView const &particle, SimTrackView const &sim, optical::MaterialView const &mat, Real3 const &pos, NativeCRef< optical::CerenkovData > const &shared, OffloadPreStepData const &step_data)
 Construct with optical material, Cerenkov, and step information.
 
template<class Generator >
CELER_FUNCTION optical::GeneratorDistributionData operator() (Generator &rng)
 Return an GeneratorDistributionData object. More...
 

Detailed Description

Sample the number of Cerenkov photons to be generated.

This populates the GeneratorDistributionData used by the CerenkovGenerator to generate optical photons using post-step and cached pre-step data.

The number of photons is sampled from a Poisson distribution with a mean

\[ \langle n \rangle = \ell_\text{step} \difd{N}{x} \]

where \( \ell_\text{step} \) is the step length.

Member Function Documentation

◆ operator()()

template<class Generator >
CELER_FUNCTION optical::GeneratorDistributionData celeritas::CerenkovOffload::operator() ( Generator &  rng)
inline

Return an GeneratorDistributionData object.

If no photons are sampled, an empty object is returned and can be verified via its own operator bool.


The documentation for this class was generated from the following file: