Cross-sections, energy loss and range
are tabulated for all materials which enter in the definition of a tracking medium by the routine GPHYSI. The values of the energy for which the tabulated quantities are calculated are stored in the common /GCMULO/ (see [BASE030]). To evaluate one of the tabulated quantities for a particle of kinetic energy , a linear interpolation is used. Let i be such that:
The integer variable IEKBIN in common /GCTRACK/ is equal to i during tracking and its value is recomputed by the routine GEKBIN when the energy of the particle changes. If the quantity Y has been tabulated so that then the value is calculated as:
Inside the code the following quantities are used:
where GEKRAT is in common /GCTRAK/ and GEKRT1 is a local variable recomputed when needed.