COSMOS v7.655  COSMOSv7655
(AirShowerMC)
howmuch.f
Go to the documentation of this file.
1  subroutine howmuch(limit, E0, NN, cosz)
2  implicit none
3 #include "Zmaxdef.h"
4 #include "Zobs.h"
5 #include "Zobsp.h"
6 #include "Ztrackp.h"
7 #include "Zincidentp.h"
8 #include "Zprivate.h"
9 #include "Zprivate2.h"
10 
11  real E0 ! input primary total energy in GeV
12  integer NN ! input primary nucleon number
13  real cosz ! input. zenith in cos
14  real limit ! input. approx max. number of ptcls
15  ! to be recorded in each area bin
16 
17  real depth, depthc, sum, Nx, age, r, depc
18  integer idep, ir, j
19  integer code
20  real*8 cvh2thick
21 
22 
23  if( .not. freec ) then
24  depc = cvh2thick(heightofinj)*0.1 -55.4
25  else
26  depc = 0.
27  endif
28 
29  do idep = 1, ansites
30  j = indivdep(idep)
31  depth = depthlist(j)*0.1 ! g/cm2
32 !
33 ! for very deeply penetrated shower,
34 ! depth correction needed.
35  depthc =max(depth - depc, 50.0)
36  do code = 1, 4
37  write(0,*) ' code=',code,' depth=',depth,' g/cm^2',
38  * ' depthc=',depthc
39  call crecprob(depthc, code, limit, sngl(dfai), e0, nn,
40  * cosz, nrbin, recprob(1, code, idep),
41  * nptcls(1, code, idep), age, sum, nx)
42 
43  do ir= 1, nrbin
44  r=0.01*10**((ir-1)*0.1)
45  write(0, *) r, age, recprob(ir, code, idep),
46  * nptcls(ir, code, idep)
47  enddo
48  enddo
49  enddo
50  end
subroutine howmuch(limit, E0, NN, cosz)
Definition: howmuch.f:2
! timing nrbin
Definition: Zprivate2.h:12
subroutine crecprob(depthin, code, limit, dfai, E0in, NN, cosz, nr, recprob, nptcl, age, sum, Nx)
Definition: crecprob.f:3