COSMOS v7.655  COSMOSv7655
(AirShowerMC)
howmuch.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine howmuch (limit, E0, NN, cosz)
 

Function/Subroutine Documentation

◆ howmuch()

subroutine howmuch ( real, dimension(4)  limit,
real  E0,
integer  NN,
real  cosz 
)

Definition at line 2 of file howmuch.f.

References crecprob(), and nrbin.

Referenced by xbgrun().

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(4) ! 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(code),
40  * sngl(dfai), e0, nn,
41  * cosz, nrbin, recprob(1, code, idep),
42  * nptcls(1, code, idep), age, sum, nx)
43 
44  do ir= 1, nrbin
45  if( recprob(ir, code, idep) .gt. 1.e38) then
46  recprob(ir, code, idep) = 1.e38
47  endif
48  r=0.01*10**((ir-1)*0.1)
49  write(0, *) r, age, recprob(ir, code, idep),
50  * nptcls(ir, code, idep)
51  enddo
52  enddo
53  enddo
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz Zfirst pos xyz *Zfirst pos *Zfirst pos depth
Definition: ZavoidUnionMap.h:1
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz r
Definition: ZavoidUnionMap.h:1
! timing nrbin
Definition: Zprivate2.h:12
********************block data cblkHeavy ********************integer j data *HeavyG2symbol *data *HeavyG2code kiron data j
Definition: cblkHeavy.h:36
*Zfirst p fm *Zfirst p Zfirst p code
Definition: ZavoidUnionMap.h:1
subroutine crecprob(depthin, code, limit, dfai, E0in, NN, cosz, nr, recprob, nptcl, age, sum, Nx)
Definition: crecprob.f:3
real *8 function cvh2thick(z)
Definition: ciniSegAtoms.f:93
Here is the call graph for this function:
Here is the caller graph for this function: