32 real*8 cconst/2.7429630/
38 p=( (5.2*g-2.)*g +1. )*2.66666*cconst
40 p=( (1. - (g+1.)*2/g**2)*log(g*2+1.) + .5 + 4./g -
41 * 1./(g*2+1.)**2/2 ) /g * cconst
49 subroutine ccomptea(Eg, Egout, Ee, cosg, cose)
59 real*8 xmin, a1, a2, x, temp, u, sin2g, cos2e, g
62 xmin = 1.
d0/( 1.
d0 + 2*g)
64 a2 = (1.
d0 -xmin*xmin) /2
67 if( u .lt. a1/(a1+a2) )
then 70 x = xmin * exp( a1 * u )
77 sin2g = temp*(2.
d0-temp)
79 if(u .lt. (1. - x*sin2g/(1+x*x)))
goto 10
88 cos2e=(1.
d0-cosg) / ( 1.
d0-cosg +(1.
d0+cosg)/(1.
d0+g)**2 )
90 cose=min( max(sqrt(cos2e), 1.
d-10), 0.9999999999
d0)
subroutine ccomptpath(Eg, p, path)
block data cblkElemag data *AnihiE ! Eposi< 1 TeV, anihilation considered *X0/365.667/, ! radiation length of air in kg/m2 *Ecrit/81.e-3/, ! critical energy of air in GeV *MaxComptonE/1./, ! compton is considered below 1 GeV *MaxPhotoE/1.e-3/, ! above this, PhotoElectric effect neg. *MinPhotoProdE/153.e-3/, ! below 153 MeV, no gp --> hadrons ! scattering const not MeV *Knockon true
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
dE dx *! Nuc Int sampling table d
subroutine ksamplin(a, b, alpha, beta, x)
subroutine ccomptea(Eg, Egout, Ee, cosg, cose)