22.05.2014 Views

CERN Program Library Long Writeup W5013 - CERNLIB ...

CERN Program Library Long Writeup W5013 - CERNLIB ...

CERN Program Library Long Writeup W5013 - CERNLIB ...

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.

may set:<br />

f(ɛ) =<br />

g(ɛ) =<br />

α 1 =<br />

f 1 (ɛ) =<br />

[ ] 1<br />

2∑<br />

ɛ + ɛ = α i f i (E) for ɛ 0 >ɛ>1<br />

[<br />

i=1<br />

1 − ɛ ]<br />

sin2 θ<br />

1+ɛ 2 rejection function<br />

1<br />

α 2 = 1 ln(1/ɛ 0 )<br />

2 (1 − ɛ2 0)<br />

1<br />

2ɛ<br />

f 2 (ɛ) =<br />

ɛ ln(1/ɛ 0 )<br />

1 − ɛ 2<br />

The value of ɛ corresponding to the minimum photon energy (backward scattering) is given by:<br />

ɛ 0 =<br />

1<br />

1+2E/m e<br />

Given a set of random numbers r i uniformly distributed in [0,1], the sampling procedure for ɛ is the following:<br />

1. decide which element of the f(ɛ) distribution to sample from. Let α T =(α 1 + α 2 )r 0 .Ifα 1 ≥ α T<br />

select f 1 (ɛ), otherwise select f 2 (ɛ);<br />

2. sample ɛ from the distributions corresponding to f 1 or f 2 .Forf 1 this is simply achieved by:<br />

ɛ = ɛ 0 e α 1 r 1<br />

For f 2 , we change variables and use:<br />

ɛ ′ =<br />

{<br />

max(r2 ,r 3 ) for E/m ≥ (E/m +1)r 4<br />

r 5<br />

Then, ɛ = ɛ 0 +(1− ɛ 0 )ɛ ′ ;<br />

for all other cases<br />

3. calculate sin 2 θ =max(0,t(2 − t)) where t = m e (1 − ɛ)/E ′<br />

4. test the rejection function, if r 6 ≤ g(ɛ) accept ɛ, otherwise return to step 1.<br />

After the successful sampling of ɛ, GCOMP generates the polar angles of the scattered photon with respect<br />

to the direction of the parent photon. The azimuthal angle, φ, is generated isotropically and θ is as defined<br />

above. The momentum vector of the scattered photon is then calculated according to kinematic considerations.<br />

Both vectors are then transformed into the GEANT coordinate system.<br />

3 Restriction<br />

The differential cross-section is only valid for those collisions in which the energy of the recoil electron is<br />

large compared with its binding energy (which is ignored). However, as pointed out by Rossi [18], this has<br />

a negligible effect because of the small number of recoil electrons produced at very low energies.<br />

PHYS221 – 2 218

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

Saved successfully!

Ooh no, something went wrong!