1 #include "../FleshHist/asinfo.f" 2 #include "../FleshHist/asdensity.f" 4 #include "../FleshHist/crecprob.f" 11 #include "../FleshHist/Zprivate0.h" 16 real recprob(
nrbin, 4, ndepth)
20 real limit(4), E0, Emin
21 real rat, all, rec, prob
24 integer nrbina, nfaia, ansites0
25 integer leng, i, j, k, l
26 integer i0, j0, k0, l0
28 integer newfmt, maxsites, nr
29 integer icon0, iconx, icont
31 real cosz, age, sum, Nx, depth
32 character*20 field(15)
33 real nptcls(
nrbin, 4, ndepth)
39 read( *,
'(a)', end=1000 ) input0
40 if(input0 .ne.
" ")
then 41 call ksplit(input0, 20, 15, field, nr)
43 read(input0(1:
klena(input0)), *)
44 * evno0, e0,nn, cosz, limit(1), nrbina, nfaia, ansites0
48 elseif(nr .eq. 9 )
then 49 read(input0(1:
klena(input0)), *)
50 * evno0, e0,nn, cosz, limit(1), nrbina, nfaia, ansites0,
54 elseif( nr .eq. 13)
then 55 read(input0(1:
klena(input0)), *)
56 * evno0, e0,nn, cosz, emin, nrbina, nfaia, ansites0,
61 if(nrbina .ne.
nrbin .or. nfaia .ne.
nfai)
then 62 write(0,*)
' nrbina=',nrbina,
'or nfaia=',nfaia,
63 *
' differ from the def. in this prog' 70 read(*,
'(3x, f7.1, 4i4)' )
71 * intdep(
i), l0, i0, j0, k0
72 if(i0 .ne.
i .or.
j .ne. j0 .or. k .ne. k0)
then 73 write(0,*)
' intdep, i0,j0,k0=',
74 * intdep(
i), i0, j0, k0,
' strange' 79 * ( nrfairec0(l,k,
j,
i), l=1,
nrbin )
87 read(*,
'(3x,f7.1, 4i4)' )
88 * intdep(
i), l0, i0, j0, k0
89 if(i0 .ne.
i .or.
j .ne. j0 .or. k .ne. k0)
then 90 write(0,*)
' intdep, i0,j0,k0=',
91 * intdep(
i), i0, j0, k0,
' strange' 95 * ( nrfaiall0(l,k,
j,
i), l=1,
nrbin )
101 if(newfmt .eq. 0)
then 102 write(0,
'(i2, 1pE11.3, 0pf7.1, 1pE11.3, 3i4)')
103 * evno0, e0,nn, cosz, limit(1), nrbina, nfaia, ansites0
104 elseif( newfmt .eq. 1)
then 105 write(0,
'(i2, 1pE11.3, 0pf7.1, 1pE11.3, 4i4)')
106 * evno0, e0,nn, cosz, limit(1), nrbina, nfaia, ansites0,
108 elseif( newfmt .eq. 2)
then 110 *
'(i2, 1pE11.3, 0pf7.1, 1pE11.3, 4i4, 4f10.0)')
111 * evno0, e0,nn, cosz, emin, nrbina, nfaia, ansites0,
114 write(*,
'(12a)')
'prob ',
' accpt ',
' accuracy ',
115 *
' rec',
' all',
' exp-all',
116 *
' dep ',
' code',
' fai',
' r ',
' age',
' dep' 124 * cosz,
nrbin, recprob(1,
j,
i),
125 * nptcls(1,
j,
i), age, sum, nx)
129 if( nrfaiall0(l, k,
j,
i) .gt. 0.)
then 130 prob=recprob(l,
j,
i)
131 rec = nrfairec0(l,k,
j,
i)
132 all = nrfaiall0(l,k,
j,
i)
134 write(*,
'(1p6E11.3,4i4, 0p,f7.3,f7.1)')
135 * prob, rec/all, rat, rec,
136 * all, nptcls(l,
j,
i),
i,
j,k,l, age,
depth 145 write(0,*)
'all events processed ' integer npitbl real *nx parameter(n=101, npitbl=46, nx=n-1) real *8 uconst
subroutine ksplit(a, m, n, b, nr)
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz Zfirst pos xyz *Zfirst pos *Zfirst pos depth
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 cblkHeavy ********************integer j data *HeavyG2symbol *data *HeavyG2code kiron data j
subroutine crecprob(depthin, code, limit, dfai, E0in, NN, cosz, nr, recprob, nptcl, age, sum, Nx)
dE dx *! Nuc Int sampling table d
integer function klena(cha)