Celeritas
0.5.0-86+4a8eea4
|
Helper class for atomic relaxation. More...
#include <AtomicRelaxationHelper.hh>
Public Member Functions | |
CELER_FUNCTION | AtomicRelaxationHelper (AtomicRelaxParamsRef const &shared, AtomicRelaxStateRef const &states, ElementId el_id, TrackSlotId tid) |
Construct with shared and state data. | |
CELER_FUNCTION | operator bool () const |
Whether atomic relaxation should be applied. | |
CELER_FUNCTION size_type | max_secondaries () const |
Maximum number of secondaries that can be produced. | |
CELER_FUNCTION Span< SubshellId > | scratch () const |
Access scratch space. More... | |
CELER_FUNCTION AtomicRelaxation | build_distribution (CutoffView const &cutoffs, SubshellId shell_id, Span< Secondary > secondaries) const |
Create the sampling distribution. | |
Helper class for atomic relaxation.
This class can be used inside an Interactor
to simplify the creation of the sampling distribution for relaxation and the allocation of storage for secondaries created in both relaxation and the primary process.
|
inline |
Access scratch space.
This temporary data is needed as part of a stack while processing the cascade of electrons.