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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Geant 3.16 GEANT User’s Guide PHYS332<br />

Origin : L.Urbán Submitted: 10.04.86<br />

Revision : L.Urbán Revised: 16.12.93<br />

Documentation : F.Carminati, K.Lassila-Perini<br />

1 Subroutines<br />

Simulation of energy loss straggling<br />

CALL GFLUCT<br />

(DEMEAN,DE*)<br />

DEMEAN<br />

DE<br />

(REAL) average energy loss according to the energy loss tables;<br />

(REAL) actual energy loss.<br />

GFLUCT selects the method to sample the fluctuations around the mean energy loss DEMEAN and returns the<br />

energy loss DE in the current step.<br />

If δ-rays are not produced (DRAY=0), it calls GLANDG when the current particle and material parameters are<br />

in the validity range of Landau theory, GVAVIV when in the range of Vavilov theory, or performs a Gaussian<br />

sampling. For fluctuations in small steps GLANDZ is called.<br />

If δ-rays are produced (DRAY=1), it calls GLANDZ which, the cut for the δ-ray production being set, does<br />

sampling from restricted formula.<br />

GFLUCT is called from the tracking routines GTELEC, GTHADR and GTMUON when the LOSS flag is set to 1, 2<br />

or 3.<br />

CALL GLANDG<br />

(YRAN*)<br />

YRAN<br />

(REAL) random variable distributed according to the Landau distribution;<br />

GLANDG samples from the Landau distribution. It is called from GFLUCT.<br />

VALUE = GVAVIV (RKAPPA,BETA2,RAN)<br />

RKAPPA (REAL) κ parameter of the Vavilov distribution (see below);<br />

BETA2 (REAL) β 2 of the particle;<br />

RAN (REAL) random number uniformly distributed in ]0,1[.<br />

GVAVIV samples samples the variable λ = λ v /κ − ln κ, sometimes called the Landau λ, where λ v is<br />

distributed according to the Vavilov distribution. For more details see below. It is called from GFLUCT.<br />

CALL GLANDZ<br />

(Z,STEP,P,E,DEDX,DE*,POTI,POTIL)<br />

Z (REAL) atomic number of the medium;<br />

STEP (REAL) step size in cm;<br />

P (REAL) momentum of the particle in GeV c −1 ;<br />

E (REAL) total energy of the particle in GeV;<br />

DEDX (REAL) average energy loss in the step according to the energy loss tables;<br />

DE (REAL) actual energy loss in the step;<br />

258 PHYS332 – 1

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

Saved successfully!

Ooh no, something went wrong!