|
Celeritas 0.7.0-dev.246+develop.67e9bdac
|
Helper class for atomic relaxation. More...
#include <AtomicRelaxationHelper.hh>
Public Member Functions | |
| AtomicRelaxationHelper (AtomicRelaxParamsRef const &shared, AtomicRelaxStateRef const &states, ElementId el_id, TrackSlotId tid) | |
| Construct with shared and state data. | |
| operator bool () const | |
| Whether atomic relaxation should be applied. | |
| size_type | max_secondaries () const |
| Maximum number of secondaries that can be produced. | |
| Span< SubshellId > | scratch () const |
| Access scratch space. | |
| 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.