2 subroutine cgrap(w, ptav, ntp, a, icon)
15 call cprap(ptav, a, ntp)
17 call cnprap(a, ntp, maxi, mini)
21 a(i)%fm%p(3)= sqrt(a(i)%mass**2 + a(i)%fm%p(3)**2)
25 call ccmrap(w, a, ntp, maxi, mini, y, z, icon)
38 subroutine cctrap(g, n, y, z)
53 g(i)%fm%p(4) = g(i)%fm%p(4)*y + z
57 subroutine cccrap(g, n, sume, sump)
77 sume=sume+ cosh(yr)*g(i)%fm%p(3)
78 sump=sump+ sinh(yr)*g(i)%fm%p(3)
82 subroutine cnprap(g, n, maxi, mini)
104 if(g(i)%fm%p(4) .gt. g(maxi)%fm%p(4) ) maxi=i
106 if(g(i)%fm%p(4) .lt. g(mini)%fm%p(4) ) mini=i
114 g(i)%fm%p(4) = (g(i)%fm%p(4) - gmn )/(gmx-gmn)
117 subroutine ccmrap(w, g, n, maxi, mini, y, z, icon)
148 real*8 eps1/0.0010d0/, w2, alw2, y1, epsx
149 real*8 sump, summ, sumgp, sumgm, tmp
150 real*8 expgyp, expgym, fy1, fy1p, dy, eps
156 y1=log(w2/g(maxi)%fm%p(3)/g(mini)%fm%p(3))
157 epsx=eps1/sqrt(dble(n))
171 if(tmp .gt. 100.d0 .or.
172 * tmp .lt. -100.d0)
then 182 sump = sump+ g(i)%fm%p(3)*expgyp
183 summ = summ+ g(i)%fm%p(3)*expgym
186 * g(i)%fm%p(3)*g(i)%fm%p(4)*expgyp
189 * g(i)%fm%p(3)*g(i)%fm%p(4)*expgym
193 fy1=alw2 -log(sump*summ)
194 fy1p= - sumgp/sump + sumgm/summ
198 if(abs(eps) .lt. epsx .or. lp .gt. 10)
goto 100
210 subroutine cprap(ptav, pc, n)
241 y =min(u*(ptav/pc(i)%fm%p(3))**0.40
d0, 2.5
d0)
270 if(u .lt. 1.
d0/s)
then 275 y=a*(1.
d0 -sqrt(u)) + 1.
d0 277 if(u .lt. 0.5
d0)
then subroutine ccmrap(w, g, n, maxi, mini, y, z, icon)
subroutine cccrap(g, n, sume, sump)
subroutine cgrap(w, ptav, ntp, a, icon)
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
subroutine cnprap(g, n, maxi, mini)
subroutine cctrap(g, n, y, z)
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
subroutine cprap(ptav, pc, n)