GFLUCT selects the method to sample the fluctuations around the mean energy loss DEMEAN and returns the energy loss DE in the current step.
If -rays are not produced ( DRAY=0), it calls GLANDG when the current particle and material parameters are in the validity range of Landau theory, GVAVIV when in the range of Vavilov theory, or performs a Gaussian sampling. For fluctuations in small steps GLANDZ is called.
If -rays are produced ( DRAY=1), it calls GLANDZ which, the cut for the -ray production being set, does sampling from restricted formula.
GFLUCT is called from the tracking routines GTELEC, GTHADR and GTMUON when the LOSS flag is set to 1, 2 or 3.
GLANDG samples from the Landau distribution. It is called from GFLUCT.
GVAVIVVALUE = GVAVIV(RKAPPA,BETA2,RAN)
GVAVIV samples samples the variable , sometimes called the Landau , where is distributed according to the Vavilov distribution. For more details see below. It is called from GFLUCT.
CALL GLANDZ (Z,STEP,P,E,DEDX,DE*,POTI,POTIL)
GLANDZ gives the energy loss DE for the current particle with energy E and momentum P in a material of atomic number Z where the average energy loss is DEDX and the current step length STEP. It is called from GFLUCT for restricted Landau fluctuations when -rays are produced or to sample the fluctuations in thin layers (with or without -ray production).