
A particle of energy,
,
and charge, Q, is
sampled. MC radiation transport is performed, h times. Energy,
,
is deposited in the medium, at position
,
and ionisation in air, I, is calculated via the
stopping power ratio of air to water, as well as dose, Di, for a
range of oblique angles,
.
Intercepts with the surface are
computed for the range of incident angles by rotation, Ri, of the
position,
,
and direction,
.
If the intercept with
any surface, ti, is less than the path-length, s of the particle
it exits in the
geometry. When the particle history
has been completed, the contribution is accepted and added to the
previous estimate, X, if,
is less than the variance,
.