Celeritas 0.7+e3cce20
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::ExitingDirectionSampler Class Reference

Sample an exiting direction from a polar cosine and incident direction. More...

#include <InteractionUtils.hh>

Public Member Functions

 ExitingDirectionSampler (real_type costheta, Real3 const &direction)
 
template<class Engine >
Real3 operator() (Engine &rng)
 

Detailed Description

Sample an exiting direction from a polar cosine and incident direction.

Combine an already-sampled change in polar cosine (dot product of incident and exiting) with a sampled uniform azimuthal direction, and apply that rotation to the original track's incident direction.


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