Go to the source code of this file.
◆ csampaf()
subroutine csampaf |
( |
type(sampaf) |
sampInfo, |
|
|
real*8 |
xs |
|
) |
| |
Definition at line 33 of file csampAF.f.
References ksampaf(), n, and x.
35 type(sampaf):: sampinfo
37 call ksampaf(sampinfo.
x, sampinfo.yi, sampinfo.
n,
38 * sampinfo.coef2, sampinfo.
n,
xs)
subroutine ksampaf(x, yi, n, coef2, nc, xs)
! constants thru Cosmos real ! if multiplied to deg radian Torad ! light velocity m sec ! infinty ! kg m2 *Togpcm2 g cm2 ! g cm2 *Tokgpm2 kg m2 ! cm *Tom m ! m *Tocm cm ! g cm3 *Tokgpm3 kg m3 ! kg m3 *Togpcm3 g cm3 ! sec *Tonsec nsec ! Tesla m ! Avogadro *A2deninv ! mfp *n * xs
! 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
◆ csampaf0()
subroutine csampaf0 |
( |
integer |
iowk, |
|
|
character*(*) |
filen, |
|
|
type(sampaf) |
sampInfo |
|
) |
| |
Definition at line 2 of file csampAF.f.
References copenf(), cskipcomment(), ksampaf0(), n, true, x, and y.
7 type(sampaf):: sampinfo
11 call copenf(iowk, filen, icon)
14 write(0,*)
'file: ',filen
15 write(0,*)
' could not be opened' 22 read(iowk, *, end=100) sampinfo.
x(
i+1), sampinfo.
y(
i+1)
29 * sampinfo.coef, sampinfo.
n, sampinfo.yi,
30 * sampinfo.sum, sampinfo.coef2)
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 ksampaf0(x, y, n, coef, nc, yi, total, coef2)
subroutine copenf(io, fnin, icon)
latitude latitude this system is used *****************************************************************! type coord sequence union map real y
! 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
◆ csampafintp()
subroutine csampafintp |
( |
type(sampaf) |
sampInfo, |
|
|
real*8 |
xv, |
|
|
real*8 |
ans |
|
) |
| |
Definition at line 41 of file csampAF.f.
References kcsplintp(), n, x, and y.
Referenced by csampafmax().
46 type(sampaf):: sampinfo
50 * sampinfo.coef, sampinfo.
n, xv,
ans)
atmos%rho(atmos%nodes) **exp(-(z-atmos%z(atmos%nodes))/Hinf) elseif(z .lt. atmos%z(1)) then ans=atmos%rho(1) **exp((atmos%z(1) -z)/atmos%H(1)) else call kdwhereis(z, atmos%nodes, atmos%z, 1, i) a=atmos%a(i) if(a .ne. 0.d0) then ans=atmos%rho(i) **(1+a *(z-atmos%z(i))/atmos%H(i)) **(-1.0d0-1.d0/a) else ans=*atmos%rho(i) *exp(-(z-atmos%z(i))/atmos%H(i)) endif endif ! zsave=z ! endif cvh2den=ans end ! ---------------------------------- real *8 function cvh2temp(z) implicit none ! vettical height to temperatur(Kelvin) real *8 z ! input. vertical height in m ! output is temperature of the atmospher in Kelvin real *8 ans integer i if(z .gt. atmos%z(atmos%nodes)) then ans=atmos%T(atmos%nodes) elseif(z .lt. atmos%z(1)) then ans=atmos%T(1)+atmos%b(1) *(z - atmos%z(1)) else call kdwhereis(z, atmos%nodes, atmos%z, 1, i) ans=atmos%T(i)+atmos%b(i) *(z-atmos%z(i)) endif cvh2temp=ans end !--------------------------------------------- real *8 function cthick2h(t) implicit none real *8 t ! input. air thickness in kg/m^2 real *8 logt, ans integer i real *8 dod0, fd, a logt=log(t) if(t .ge. atmos%cumd(1)) then ans=atmos%z(1) - *(logt - atmos%logcumd(1)) *atmos%H(1) elseif(t .le. atmos%cumd(atmos%nodes)) then ans=atmos%z(atmos%nodes) - *Hinf *log(t/atmos%cumd(atmos%nodes)) else call kdwhereis(t, atmos%nodes, atmos%cumd, 1, i) ! i is such that X(i) > x >=x(i+1) ans
latitude latitude this system is used *****************************************************************! type coord sequence union map real y
subroutine kcsplintp(x, y, n, coef, nc, v, f)
! 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
◆ csampafmax()
subroutine csampafmax |
( |
type(sampaf) |
sampInfo, |
|
|
real*8 |
xmax, |
|
|
real*8 |
fmax |
|
) |
| |
Definition at line 53 of file csampAF.f.
References csampafintp(), and n.
57 type(sampaf):: sampinfo
66 x2 = sampinfo.
x(sampinfo.
n)
72 if( fmax .lt.
temp )
then 77 do while (
x .lt.
x2-
dx/2 )
79 if( fmax .lt.
temp )
then subroutine csampafintp(sampInfo, xv, ans)
block data include Zlatfit h c fitting region data x1(1)/0.03/
integer npitbl real *nx dx real dx
real(4), dimension(:), allocatable, save temp
block data include Zlatfit h c fitting region data x2(1)/0.5/data x1(2)/0.3/
! 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