goupil_state

This structure contains a Monte Carlo state representing a transported photon.

struct goupil_state
goupil_float_t energy

The photon energy, in MeV.

goupil_float3 position

The photon position, in cm.

goupil_float3 direction

The photon momentum’s direction unit vector.

goupil_float_t length

The photon total path length.

goupil_float_t weight

The photon Monte Carlo weight.