28.11.2014 Views

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

used for medical linacs (6–50 MeV, high-Z targets) and therefore the employment of Equation 2.149<br />

seems justified. At lower energies, use of Equation 2.149 still needs to be demonstrated. At higher<br />

energies, the constraints are not so badly violated except for the Born approximation when high-Z<br />

materials are used. Again, experimental data will judge the suitability of Equation 2.149 in this<br />

context.<br />

Sampling procedure<br />

To sample the photon angular distribution, a mixed sampling procedure is employed. Since it is the<br />

angular distribution that is required, the overall normalization of Equation 2.149 is unimportant<br />

including any overall energy-dependent factors. The following expression for p(y) is proportional<br />

to Equation 2.149:<br />

Defining x = y 2 ,<br />

and,<br />

where,<br />

p(y)dy = f(y 2 )N r g(y 2 )dy 2 . (2.150)<br />

f(x) = 1 + 1/(πE 0) 2<br />

(x + 1) 2 , (2.151)<br />

g(x) = 3(1 + r 2 ) − 2r − [4 + ln m(x)][(1 + r 2 ) − 4xr/(x + 1) 2 ], (2.152)<br />

r = E/E 0 ; m(x) =<br />

( ) ( )<br />

1 − r<br />

2<br />

Z<br />

1/3 2<br />

+ .<br />

2E 0 r 111(x + 1)<br />

Note that 1/E 0 (high frequency limit)≤ r ≤ 1(low frequency limit). N r is a normalization constant<br />

which will be discussed later.<br />

The function f(x) will be used for direct sampling. It can be easily verified that this function is<br />

normalized correctly, (i.e., ∫ (πE 0 ) 2<br />

0 f(x)dx = 1) and the candidate scattering angle is easily found<br />

by inversion to be:<br />

ˆΘ = 1 √<br />

ζ<br />

E 0 1 − ζ + 1/(πE 0 ) 2 , (2.153)<br />

where ζ is a random number selected uniformly on the range (0,1) and the “hat” over Θ signifies<br />

that it is a quantity determined by random selection.<br />

The function g is sampled using the rejection technique. In order to employ this technique,<br />

the optimum case is to have the location of the maximum of the function, x max characterized<br />

allowing the most efficient determination N r = g(x max ) −1 . Failing this, the next best scenario is<br />

to overestimate g(x max ). The closer this estimate is to the true maximum value, the more efficient<br />

the rejection technique will be. Unfortunately, characterizing g in complete generality proved to be<br />

very difficult. The following observations were made, however. The maximum value of g(x) occurs<br />

56

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

Saved successfully!

Ooh no, something went wrong!