28.11.2014 Views

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

That is, using Equations 2.122 and 2.123 in Equation 2.121, we obtain<br />

( )/ ∣ f(E) = g h −1 (E) ∣∣<br />

dh<br />

dy (h−1 (x))<br />

∣ (2.125)<br />

= g(E/p)/p<br />

1<br />

=<br />

ln 2<br />

1<br />

=<br />

ln 2<br />

( 1<br />

p if E p ∈ (<br />

0, 1 2<br />

)<br />

,<br />

1 − E/p<br />

E/p<br />

( 1<br />

p if E ∈ (0, p/2), 1 − E/p<br />

E<br />

· 1<br />

( )) 1<br />

p if E/p ∈ 2 , 1 )<br />

if E ∈ (p/2, p) Q.E.D.<br />

Thus we sample f 1j (E) by first sampling E ′ from Equation 2.121 and then letting E = E ′ p.<br />

The g(E ′ ) in Equation 2.122 may be decomposed according to<br />

g(E ′ ) =<br />

2∑<br />

i=1<br />

α ′ i f ′ i (E′ ) , (2.126)<br />

with<br />

α ′ 1 = 1<br />

2 ln 2 , f 1 ′ (E′ ) =<br />

(<br />

α ′ 2 = 1 − 1 )<br />

(<br />

, f ′<br />

2 ln 2<br />

2(E ′ 1<br />

) =<br />

(ln 2) − 1 2<br />

( (<br />

2 if E ′ ∈ 0, 1 ) )<br />

, 0<br />

2<br />

· 1 − E′<br />

E ′<br />

if E ′ ∈<br />

, (2.127)<br />

( ) )<br />

1<br />

2 , 1 , 0<br />

. (2.128)<br />

We sample f 1 ′(E′ ) by letting E ′ = ζ/2, where ζ is a random number uniformly drawn on the interval<br />

(0, 1). To sample f 2 ′(E′ ) we let E ′ = 1− 1 2x, x ∈ (0, 1), and sample x from the frequency distribution<br />

function<br />

h(x) = α ′′ f ′′ (x) g ′′ (x) (2.129)<br />

where<br />

α ′′ =<br />

1<br />

(4 ln 2) − 2 , f ′′ (x) = 2x, g ′′ (x) = 1<br />

2 − x = 0.5<br />

E ′ (2.130)<br />

We already know how to sample f ′′ (x) (e.g., see Equation 2.111), so this completes the details of<br />

sampling the bremsstrahlung spectrum.<br />

Let us now consider the pair production interaction. The general developments are quite analogous<br />

to the bremsstrahlung case and we obtain the following formulas:<br />

E ≡ Ĕ<br />

˘k , (2.131)<br />

where Ĕ is the energy of one of the secondary electrons, ˘k is the incident photon energy,<br />

∆ E =<br />

1<br />

˘kE(1 − E) , (2.132)<br />

δ ′ = ∆ C ∆ E , (2.133)<br />

51

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

Saved successfully!

Ooh no, something went wrong!