02.05.2014 Views

PENELOPE 2003 - OECD Nuclear Energy Agency

PENELOPE 2003 - OECD Nuclear Energy Agency

PENELOPE 2003 - OECD Nuclear Energy Agency

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.4. Generation of random tracks 149<br />

a) Sample the polar angular deflection µ = (1 − cos θ)/2 from the distribution<br />

F a (s; µ), eq. (4.30), corresponding to the current energy E. Sample the azimuthal<br />

scattering angle as φ = 2πξ. Perform a rotation R(θ, φ) of the vector ˆd according<br />

to the sampled polar and azimuthal angular deflections (as described in section<br />

1.4.2) to obtain the new direction: ˆd ← R(θ, φ)ˆd.<br />

b) Sample the energy loss ω due to soft stopping interactions along the step s<br />

from the distribution G a (s; ω), eqs. (4.59)-(4.63), and reduce the kinetic energy:<br />

E ← E − ω.<br />

These two actions are performed in random order to account for the energy dependence<br />

of the soft transport mean free paths (see section 4.3.3).<br />

Go to (xi) if E < E abs .<br />

(vii) Let the particle advance the distance s − τ in the direction ˆd: r ← r + (s − τ)ˆd.<br />

(viii) Do as in (v).<br />

(ix) If in step (iii) the step length was truncated, i.e. s = s max , simulate a delta<br />

interaction.<br />

Go to (ii).<br />

(x) Simulate the hard event:<br />

Sample the kind of interaction according to the point probabilities,<br />

p el = N σ(h) el<br />

,<br />

Σ h,max<br />

p in = N σ(h) in<br />

,<br />

Σ h,max<br />

p br = N σ(h) br<br />

,<br />

Σ h,max<br />

p si = N σ si<br />

Σ h,max<br />

,<br />

p δ =<br />

Σ δ<br />

Σ h,max<br />

, and p an = N σ an<br />

Σ h,max<br />

in the case of positrons. (4.120)<br />

If the event is a delta interaction, return to (ii).<br />

If the event is an inner-shell ionization, sample the active shell, simulate the relaxation<br />

cascade of the residual ion and return to (ii). Notice that in this case the<br />

state of the projectile remains unaltered.<br />

Sample the polar scattering angle θ and the energy loss W from the corresponding<br />

DCS. Generate the azimuthal scattering angle as φ = 2πξ. Perform a rotation<br />

R(θ, φ) of the vector ˆd to obtain the new direction: ˆd ← R(θ, φ)ˆd.<br />

Reduce the kinetic energy of the particle: E ← E − W .<br />

If, as a result of the interaction, a secondary particle is emitted in a direction ˆd s ,<br />

with energy E s > E abs , store its initial state (r, E s , ˆd s ).<br />

Go to (ii) if E > E abs .<br />

(xi) Simulate the tracks of the secondary electrons and photons produced by the primary<br />

particle (or by other secondaries previously followed) before starting a new<br />

primary track.<br />

4.4.1 Stability of the simulation algorithm<br />

The present simulation scheme for electrons/positrons is relatively stable under variations<br />

of the simulation parameters, due mostly to the effectiveness of the energy-loss<br />

corrections. This implies that the simulation parameters can be varied amply without

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!