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.

where,<br />

(a − 1) 1<br />

f(ν) = ( )<br />

1<br />

νc<br />

a−1 − 1 a−1<br />

ν a (5)<br />

ν max<br />

is the normalised distribution in the interval [ν c ,ν max ] and<br />

[<br />

g(ν) = 1 − ν ] 1/2<br />

min<br />

(6)<br />

ν<br />

is the rejection function.<br />

2. r 1 and r 2 being two uniformly distributed random numbers in the interval [0, 1]:<br />

−<br />

Sample ν from the distribution f(ν) as:<br />

( ) 1<br />

1 − r1 r 1 1−a<br />

ν =<br />

ν a−1 c<br />

ν a−1 max<br />

− Accept ν if r 2 ≤ g(ν) (8)<br />

(7)<br />

3. Then compute<br />

ρ max (ν) =<br />

[<br />

1 − 6M 2 ] [<br />

E 2 1 − 4m ] 1/2<br />

(9)<br />

(1 − ν) νE<br />

and generate ρ uniformly in the range [−ρ max , +ρ max ].<br />

After the successful sampling of (ν, ρ), GPAIRM generates the polar angles of the radiated e + e − -pair with<br />

respect to an axis defined along the parent muon’s momentum. Θ is assigned the approximate average value:<br />

Θ= M E<br />

(10)<br />

φ + is generated isotropically and φ − = φ + + π<br />

PHYS451 – 2 317

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

Saved successfully!

Ooh no, something went wrong!