23 IMPLICIT DOUBLE PRECISION (
a-
h,
o-
z)
31 dimension xpt(*), ypt(*)
32 CHARACTER*1 chpt(*) , chsav, chbest, cdot, cslash, cblank
34 CHARACTER cline*100, chmess*30
37 DATA cdot,cslash,cblank/
'.' ,
'/' ,
' '/
38 maxnx = min(npagwd-20,maxwid)
39 IF (maxnx .LT. 10) maxnx = 10
41 IF (maxny .LT. 10) maxny = 10
42 IF (nxypt .LE. 1)
RETURN 52 IF (ypt(
j) .GT. ypt(
j+1))
GO TO 140
64 IF (iquit .EQ. 0)
GO TO 160
71 IF (xpt(
i) .GT. xmax) xmax = xpt(
i)
72 IF (xpt(
i) .LT. xmin) xmin = xpt(
i)
74 dxx = 0.001*(xmax-xmin)
77 CALL mnbins(xmin,xmax,maxnx,xmin,xmax,nx,bwidx)
80 IF (ymax .EQ. ymin) ymax=ymin+1.0
81 dyy = 0.001*(ymax-ymin)
84 CALL mnbins(ymin,ymax,maxny,ymin,ymax,ny,bwidy)
87 IF (chbest .EQ. cblank)
GO TO 50
88 xbest = 0.5 * (xmax+xmin)
89 ybest = 0.5 * (ymax+ymin)
98 xpt(
i) = ax*xpt(
i) + bx
99 300 ypt(
i) = any-ay*ypt(
i) - by
100 nxbest = ax*xbest + bx
101 nybest = any - ay*ybest - by
110 310 cline(ibk:ibk) = cblank
113 cline(nxbest:nxbest) = cdot
114 IF (
i.NE.1 .AND.
i.NE.nybest .AND.
i.NE.ny)
GO TO 320
116 315 cline(
j:
j) = cdot
118 yprt = ymax - float(
i-1)*bwidy
119 IF (isp1 .GT. nxypt)
GO TO 350
123 IF (ks .GT.
i)
GO TO 345
125 IF (cline(ix:ix) .EQ. cdot)
GO TO 340
126 IF (cline(ix:ix) .EQ. cblank)
GO TO 340
127 IF (cline(ix:ix) .EQ.chpt(k))
GO TO 341
133 340 cline(ix:ix) = chpt(k)
139 IF (linodd .EQ. 1 .OR.
i .EQ. ny)
GO TO 380
141 WRITE (nunit,
'(18X,A)') cline(:nx)
143 380
WRITE (nunit,
'(1X,G14.7,A,A)') yprt,
' ..', cline(:nx)
148 cline(ibk:ibk) = cblank
149 IF (mod(ibk,10) .EQ. 1) cline(ibk:ibk) = cslash
151 WRITE (nunit,
'(18X,A)') cline(:nx)
154 430 xvalus(ibk) = xmin + float(ibk-1)*10.*bwidx
156 WRITE (nunit,
'(12X,12G10.4)') (xvalus(ibk), ibk=1,iten)
158 IF (overpr) chmess=
' Overprint character is &' 159 WRITE (nunit,
'(25X,A,G13.7,A)')
'ONE COLUMN=',bwidx, chmess
integer npitbl real *nx parameter(n=101, npitbl=46, nx=n-1) real *8 uconst
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
real(4), dimension(:), allocatable, save h
********************block data cblkHeavy ********************integer j data *HeavyG2symbol *data *HeavyG2code kiron data j
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 ! knockon is considered Obsolete *PhotoProd false
subroutine mnbins(A1, A2, NAA, BL, BH, NB, BWID)