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.

Geant 3.21 GEANT User’s Guide PHYS334<br />

Origin : I.Gavrilenko, P.Nevski, K.Lassila-Perini Submitted: 11.03.94<br />

Revision : Revised: 11.03.94<br />

Documentation : K.Lassila-Perini<br />

1 Subroutines<br />

Models for energy loss fluctuations in thin layers<br />

CALL GSTINI<br />

GSTINI initializes the tables that are used for sampling of the energy loss, if the user has set the flag STRA<br />

= 1. It calls the subroutine GSTXIN to integrate an expression for the number of collisions and GSTTAB for<br />

preparing the tables for different Lorentz factors. It is called from GPHYSI at initialization time.<br />

CALL GSTXIN<br />

GSTXIN computes the values needed for the sampling tables. It uses the functions GOSCIN to integrate over<br />

the photoelectric cross-sections and the function GKOKRI to compute the real part of the complex dielectric<br />

constant. GSTXIN is called from GSTINI.<br />

VALUE = GOSCIN (EIN1EV,EIN2EV)<br />

GOSCIN integrates the parameterization of the photoelectric cross-sections from energy EIN1EV to energy<br />

EIN2EV. It is called from GSTXIN.<br />

VALUE = GKOKRI (E,EMINEV,EMAXEV)<br />

GKOKRI computes the real part of the complex dieletric constant which is needed in the preparation of energy<br />

loss sampling tables. E in the energy for which the values are being tabulated, EMINEV and EMAXEV are the<br />

integration limits. GKOKRI is called from GSTXIN.<br />

CALL GSTTAB<br />

(GAM,NT,EN,FN)<br />

GSTTAB prepares the energy loss sampling tables for different Lorentz factors. The input GAM is the Lorentz<br />

factor, the output values are: NT the lenght of the table, EN the energy array and FN the cumulative probabilty<br />

array. It calls GXGINT to integrate over the probability function GSTDN to get the value of FN. GSTTAB is called<br />

from GSTINI.<br />

VALUE = GXGINT (EXT,A,B,EPS)<br />

GXGINT performs the Gaussian integration from A to B over the function EXT with accuracy EPS. It is called<br />

from GSTTAB to integrate over the probability function GSTDN.<br />

VALUE = GSTDN (LGE)<br />

GSTDN is the function which gives the probability for a collision with energy transfer LGE. It is integrated to<br />

get the cumulative probabilty function to be used in the sampling of the energy loss.<br />

CALL GSTREN<br />

(GAMMA,ECUT,STEP)<br />

GSTREN computes the energy loss for a particle of Lorentz factor GAMMA in a step of length STEP if the user<br />

has set the flag STRA = 1. ECUT is the cut for the δ-ray production. GSTREN is called from GFLUCT.<br />

271 PHYS334 – 1

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

Saved successfully!

Ooh no, something went wrong!