6 integer ns, nrbin, nebin, fno
9 type(histogram2) he(ns)
11 real*8 x, y, z, fx, R, tm
27 real*8 coef(2), pw(2), node(3), xp(1), ca(2)
28 real*8 a, b, c, u, E, s(ns)
29 character*24 dirstr, key
38 * 1.0, 0.2, nrbin, b
'00001',
39 * 0.1, 0.1, 50, b
'00011' )
42 *
"rt",
"ptcls", .
true., 0.,
43 *
"r",
"m",
"T",
"ns")
47 * 1.0, 0.2, nrbin, b
'01001',
48 * 1.0, 0.1, 30, b
'00001' )
50 *
"Energy spectrum at diff. r",
51 *
"re",
"ptcls", .
true., 2.,
52 *
"r",
"m",
"E",
"GeV")
55 pw(1) = 1.
d0+(s(i)-1.)
56 pw(2) = 3.
d0+ (s(i)-1.)
63 write(dirstr,
'("s",i1,"/")') i
64 call kwhistdir2(h(i), dirstr)
65 call kwhistdir2(he(i), dirstr)
66 write(key,
'("s=",f5.2," r:")') s(i)
67 call kwhistid2(h(i), key)
68 call kwhistid2(he(i), key)
69 call ksamppwx(coef, pw, node, 2, xp, ca)
71 call ksamppw(j, ca, pw, node, 2, r, fx)
72 a = -2.0 - log(r) + (s(i)-1.0)
75 c = 0.1 + 10./e + r**2/300. + (s(i)-1.)
77 call kwhist2(h(i), sngl(r), sngl(tm), 1.0)
78 call kwhist2(he(i), sngl(r), sngl(e), 1.0)
80 call kwhists2( h(i), 0. )
81 call kwhists2( he(i), 0. )
82 call kwhiststep2(h(i), 2)
83 call kwhiststep2(he(i), 2)
84 call kwhistp2( h(i), fno)
85 call kwhistp2( he(i), fno)
integer npitbl real *nx parameter(n=101, npitbl=46, nx=n-1) real *8 uconst
subroutine ksgmis(n, a, x)
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
subroutine ksamppwx(c, p, x0, n, xp, c2)
subroutine ksamppw(ini, coef, power, node, n, x, fx)