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.

As in the conditions (22), (23) and (24) the value of c is as minimum 4, one gets n 3 ≥ 16. In order to speed<br />

the simulation, the maximum value is used for α.<br />

The number of collisions with energy loss in the interval B (the number of interactions which has to be<br />

simulated directly) increases slowly with the total number of collisions n 3 . The maximum number of these<br />

collisions can be estimated as<br />

n B,max = n 3 − n A,min ≈ n 3 (〈n A 〉−σ A ) (27)<br />

From the previous expressions for 〈n A 〉 and σ A one can derive the condition<br />

n B ≤ n B,max = 2n 3c 2<br />

n 3 + c 2 (28)<br />

The following values are obtained with c =4:<br />

n 3 n B,max n 3 n B,max<br />

16 16 200 29.63<br />

20 17.78 500 31.01<br />

50 24.24 1000 31.50<br />

100 27.59 ∞ 32.00<br />

Special sampling for lower part of the spectrum<br />

If the step length is very small (≤ 5 mm in gases, ≤ 2-3 µm in solids) the model gives 0 energy loss for<br />

some events. To avoid this, the probability of 0 energy loss is computed<br />

P (∆E =0)=e −(〈n 1〉+〈n 2 〉+〈n 3 〉)<br />

(29)<br />

If the probability is bigger than 0.01 a special sampling is done, taking into account the fact that in these<br />

cases the projectile interacts only with the outer electrons of the atom. An energy level E 0 =10eV is<br />

chosen to correspond to the outer electrons. The mean number of collisions can be calculated from<br />

〈n〉 = 1 dE<br />

∆x (30)<br />

E 0 dx<br />

The number of collisions n is sampled from Poissonian distribution. In the case of the thin layers, all the<br />

collisions are considered as ionisations and the energy loss is computed as<br />

∆E =<br />

n∑<br />

i=1<br />

3 Implementation<br />

E 0<br />

1 − Emax<br />

E max+E 0<br />

u i<br />

(31)<br />

The method to be used for energy loss straggling is chosen in GFLUCT. Ifδ-rays are produced (DRAY = 1)<br />

above the cut value DCUTE and the detailed PAI simulation for straggling in thin layers (see PHYS334) is<br />

not chosen (STRA = 0, default), GLANDZ is called always as it samples from the restricted distribution (the<br />

energy loss of the δ-rays which are explicitly produced should not be taken into the energy loss distribution).<br />

If δ-rays are not produced, the values of κ and ξ/I are computed, and Urbán, Landau, Vavilov or Gaussian<br />

model is chosen accordingly. If Urbán model is used, GLANDZ will be called with infinite (BIG) value for the<br />

δ-ray production.<br />

When Landau model is chosen, it is possible to use a routine from the <strong>CERN</strong> <strong>Program</strong> <strong>Library</strong> to sample<br />

random numbers from the Landau distribution : GENLAN written by James and Hancock [64] and copied<br />

into GEANT source file as GLANDG. This routine has been modified in order to reproduce the tail for large<br />

values of X. The original routine did not give values of X larger than 200.<br />

CALL GENLAN(X)<br />

It should be noted that over the years considerable confusion has arisen over the precise form and features<br />

of the Landau distribution. As an example, a simpler form of φ(λ) had been proposed by Moyal [65] and<br />

used on occasions which has little in common with the function defined in section 2.1 [66].<br />

For the Vavilov distribution we have used the function GVAVIV by Rotondi and Montagna [67].<br />

266 PHYS332 – 9

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

Saved successfully!

Ooh no, something went wrong!