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.

g 3 (θ) =<br />

θ4 (<br />

)<br />

λf (0) (θ) + f (1) (θ) + f (2) (θ)/B<br />

g 3,Norm<br />

. (2.337)<br />

When the third sub-distribution function is selected, we first sample η = 1/θ using f η3 (η) and<br />

g η3 (η) given by<br />

f η3 (η) = 2µ 2 η for ηɛ(0, 1/µ) , (2.338)<br />

Then we let θ = 1/η.<br />

g η3 (η) =<br />

η−4 (<br />

)<br />

λf (0) (1/η) + f (1) (1/η) + f (2) (1/η)/B<br />

g 3,Norm<br />

. (2.339)<br />

As presented above, this scheme contains four parameters, λ, µ, g 2,Norm and g 3,Norm ; the latter<br />

two are so chosen that g 2 (θ) and g η3 (η) have maximum values (over the specified ranges) which<br />

are not greater than 1. The first sub-distribution is the Gaussian (actually exponential in θ 2 )<br />

distribution that dominates for large B (thick slabs). The third sub-distribution represents the<br />

“ single scattering tail.” The second sub-distribution can be considered as a correction term for<br />

central θ values. The parameter µ separates the central region from the tail. The parameter λ<br />

determines the admixture of f (0) in the second and third sub-distribution functions. It must be large<br />

enough to ensure that g 2 (θ) and g 3 (θ) are always positive. It will also be noted that α 1 becomes<br />

negative if B < λ so that this case must be specifically treated. After studying the variation of the<br />

theoretical sampling efficiency with the variation of these parameters, the values<br />

λ = 2, µ = 1, g 2,Norm = 1.80, g 3,Norm = 4.05 (2.340)<br />

were chosen. These values do not give the absolute optimum efficiency, but the optimum µ values<br />

were usually close to one, so we chose µ = 1 for simplicity. λ could not have been chosen much<br />

lower while still maintaining positive rejection functions. Furthermore it was desired to keep λ as<br />

low as possible since this would allow Molière’s distribution to be simulated for as low values of<br />

B as possible. Although Molière’s theory becomes less reliable for B < 4.5, it was felt that it was<br />

probably as good an estimate as could easily be obtained even in this range.<br />

Since α 1 < 0 for B < λ, some modification of the scheme must be devised in this case. What we<br />

have done is to use the computed values of B in computing χ c<br />

√<br />

B, but for sampling we set ‘1/B’<br />

= ‘1/λ’. This has the effect of causing the Gaussian not to be sampled.<br />

Our next point is best made by means of Figure 2.7 which is a graph of Equation 2.290, the<br />

transcendental equation relating B and b. It will be observed that when viewed as defining a<br />

function of b the resulting function is double valued. We of course reject the part of the curve for<br />

B < 1. We would, however, like to have a value of B for any thickness of transport distance (i.e.,<br />

any value of b). In order to obtain a smooth transition to zero thickness we join a straight line from<br />

the origin, (B = 0, b = 0), to the point on the curve (B = 2, b = 2 − ln 2). B is then determined<br />

by<br />

⎧<br />

2<br />

⎫<br />

⎨ 2−ln2<br />

b if b < 2 − ln 2, ⎬<br />

B = the B > 1 satisfying B − ln B = b,<br />

(2.341)<br />

⎩<br />

⎭<br />

if b > 2 − ln2 .<br />

For rapid evaluation, B has been fit using a piecewise quadratic fit for bɛ(2, 30); b = 30 corresponding<br />

roughly to a thickness of 10 7 radiation lengths, which should be sufficient for any application.<br />

89

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

Saved successfully!

Ooh no, something went wrong!