Go to the source code of this file.
◆ ksgamn()
subroutine ksgamn |
( |
real*8 |
s, |
|
|
real*8 |
x |
|
) |
| |
Definition at line 183 of file ksgamd.f.
References d, kgauss(), rndc(), and true.
Referenced by ksgmrs().
187 real*8 pi/3.14159265/, rt2i/0.70710678/, eps/0.1
d0/,
188 * err/1.
d-3/, small/1.
d-30/
189 real*8 u,
r, us, br,
kgamma, tmp, xold, acc
204 do 100
while ( more )
206 if(u .le. (2*s+1.))
then 214 r=(
pi*
x)**(s+0.5)/(-2*s + (2*s+1.)*sqrt(
pi*
x))
231 br=eps**(s+1.)/
kgamma(s+2.) * (1.- (s+1.)/(s+2.)*eps
232 * + (s+1.)/(s+3.)/2*eps*eps )
237 us=u**(1./(s+1.))*eps
241 * (1.- (s+1.)/(s+2.)*eps+(s+1.)/(s+3)/2*eps*eps)
248 * (1.-(s+1.)/(s+2.)*xold+(s+1.)/(s+3)/2*xold*xold)
250 if(
x .lt. small)
then 259 do 200
while ( more )
261 do 150
while ( more2 )
real *8 function kgamma(x)
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz r
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 kgauss(m, v, g1)
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
! constants thru Cosmos real * pi
dE dx *! Nuc Int sampling table d
! structure defining a particle at production ! Basic idea of what is to be contained in ! the particle structue is that dynamical ones should be included those derivable from the particle code ! is not included ******************************************************type fmom momentum sequence union map real e endmap map real * x
◆ ksgmim()
Definition at line 167 of file ksgamd.f.
References ksgmis().
Referenced by cfnptc().
174 write(*,*)
' input value to ksgmim. n=',
n,
' invalid' subroutine ksgmis(n, a, x)
! structure defining a particle at production ! Basic idea of what is to be contained in ! the particle structue is that dynamical ones should be included those derivable from the particle code ! is not included ******************************************************type fmom momentum sequence union map real e endmap map real * x
◆ ksgmis()
Definition at line 140 of file ksgamd.f.
References rndc(), and true.
Referenced by ksgmim(), ksgmrs(), and main().
149 write(*,*)
' input value to ksgmis. n=',
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
! structure defining a particle at production ! Basic idea of what is to be contained in ! the particle structue is that dynamical ones should be included those derivable from the particle code ! is not included ******************************************************type fmom momentum sequence union map real e endmap map real * x
◆ ksgmrm()
Definition at line 125 of file ksgamd.f.
References ksgmrs().
Referenced by ccapnu(), cslppt(), and cspt().
131 write(*,*)
' input value to ksgmrs. s=',
subroutine ksgmrs(s, a, x)
! structure defining a particle at production ! Basic idea of what is to be contained in ! the particle structue is that dynamical ones should be included those derivable from the particle code ! is not included ******************************************************type fmom momentum sequence union map real e endmap map real * x
◆ ksgmrs()
Definition at line 73 of file ksgamd.f.
References d0, ksgamn(), ksgmis(), rndc(), and true.
Referenced by ksgmrm(), and ksplandau().
81 write(*,*)
' input value to ksgmrs. s=',
84 elseif(s .lt. 0.)
then 115 r= (
x/(
n+1))**alfa/(1.-alfa + alfa*
x/(
n+1))
subroutine ksgmis(n, a, x)
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz r
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
! structure defining a particle at production ! Basic idea of what is to be contained in ! the particle structue is that dynamical ones should be included those derivable from the particle code ! is not included ******************************************************type fmom momentum sequence union map real e endmap map real * x