Next: Path and step
Up: Method
Previous: Calculation of the
The component distribution functions (
) are given by
|
|
|
|
|
| | |
|
|
| | |
|
|
where
, with
the Kummers hypergeometric function.
Integrals of the functions
and
needed for the
Monte Carlo can be written down directly in terms of the D functions
|
|
|
|
|
|
We note that the first term is just the Gaussian part and it dominates
for large B, that is, for large number of scatters, as it has to
be expected. Recalling the definition of
in (
)
we can say that the half-width of the Gaussian part of the Molière
distribution is
.
Routine GMOLIE performs the sampling of the Molière
distribution via the following steps:
- the value of B is calculated recursively. If we set
with
the relation used is
. Convergence is assumed when
.
- a random number
is sampled and
a table of four values
is built with
i = j-2,j-1,j,j+1 and
. F is the distribution
function derived from (
):
|
|
|
|
|
|
|
|
|
40 values of the functions
are tabulated.
- using a four-points continued-fraction interpolation method
(GMOL4) a table of
is interpolated using
the values of
and F tabulated in the previous step.
This is similar
to the inversion of the distribution function, but instead of
obtaining directly the random variable, we interpolate a table
of its squares.
This provides a better fit to the inverse function;
- the value of
is calculated;
- a random number
is extracted, and the rejection function
is computed. If
resampling begins from step 2, otherwise the value is accepted.
The Molière distribution gives the space scattering angle. A similar
expression may be written for the lateral displacement of the
scattered particles. However, the problem of joint angle lateral displacement
in the Molière approximation has not been solved, and, for small
step size, lateral displacement is of second order and may be neglected.
This introduces a problem when large step sizes are taken. The step
size can be artificially limited via the use of the variable
STEMAX, which is an argument to the routine GSTMED. For more
information on this point the user is invited to consult chapter
[CONS200].
Next: Path and step
Up: Method
Previous: Calculation of the
Janne Saarela
Mon Apr 3 12:46:29 METDST 1995