|
Celeritas 0.7.0-dev.220+develop.5ce7701da
|
Change in state due to an interaction. More...
#include <Interaction.hh>
Public Types | |
| enum class | Action { scattered , absorbed , onloaded , unchanged , failed } |
| Interaction result category. More... | |
Public Member Functions | |
| CELER_FUNCTION bool | changed () const |
| Whether the state changed but did not fail. | |
Static Public Member Functions | |
| static CELER_FUNCTION Interaction | from_failure () |
| Indicate a failure to allocate memory for secondaries. | |
| static CELER_FUNCTION Interaction | from_absorption () |
| Construct an interaction from a particle that was totally absorbed. | |
| static CELER_FUNCTION Interaction | from_unchanged () |
| Construct an interaction for edge cases where there is no state change. | |
| static CELER_FUNCTION Interaction | from_onloaded () |
| Construct an interaction from a particle that will be onloaded. | |
Public Attributes | |
| units::MevEnergy | energy |
| Post-interaction energy. | |
| Real3 | direction |
| Post-interaction direction. | |
| Span< Secondary > | secondaries |
| Emitted secondaries. | |
| units::MevEnergy | energy_deposition {0} |
| Energy loss locally to material. | |
| Action | action {Action::scattered} |
| Flags for interaction result. | |
Change in state due to an interaction.
Interaction result category.