Celeritas  0.5.0-56+6b053cd
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
celeritas::optical::Interaction Struct Reference

The result of a discrete optical interaction. More...

#include <Interaction.hh>

Public Types

enum class  Action { scattered , absorbed , unchanged }
 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_absorption ()
 Return an interaction respresenting an absorbed process. More...
 
static CELER_FUNCTION Interaction from_unchanged ()
 Return an interaction with no change in the track state. More...
 

Public Attributes

Real3 direction
 Post-interaction direction.
 
Real3 polarization
 Post-interaction polarization.
 
Action action {Action::scattered}
 Flags for interaction result.
 

Detailed Description

The result of a discrete optical interaction.

All optical interactions are discrete. The wavelength of a photon is only changed through absorption re-emission processes.

Member Enumeration Documentation

◆ Action

Interaction result category.

Enumerator
scattered 

Still alive, state has changed.

absorbed 

Absorbed by the material.

unchanged 

No state change, no secondaries.

Member Function Documentation

◆ from_absorption()

CELER_FUNCTION Interaction celeritas::optical::Interaction::from_absorption ( )
inlinestatic

Return an interaction respresenting an absorbed process.

Construct an interaction for an absorbed optical photon.

◆ from_unchanged()

CELER_FUNCTION Interaction celeritas::optical::Interaction::from_unchanged ( )
inlinestatic

Return an interaction with no change in the track state.

Construct an interaction for edge cases where this is no state change.


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