38 do while (input0(1:10) .ne.
" ")
40 read(
fn1 ,
'(a)') input0
41 if(input0(1:10) .ne.
" ")
then 42 read(input0(1:klena(input0)), *)
63 do while (h1%c%eventno .ne.
evno0)
75 read(h1%c%id,
'(i3)') j
77 *
'(i3, i5, f5.2, f5.2, 89 do while (h2%c%eventno .ne.
evno0)
92 read(h2%c%id,
'(i3)') j
95 *
'(i3, i5, f5.2, f5.2, 107 do while (h3%c%eventno .ne.
evno0)
111 read(h3%c%id,
'(i3)') j
113 *
'(i3, i5, f5.2, f5.2, 115 * j, int(
asdep(j) ),
133 leng = kgetenv2(
"HYBFILE0", hyb0)
137 *
'*************** caution ************' 139 *
"You haven't given env. var. HYBFILE0" 141 *
"or File specified by HYBFILE0" 142 if( icon .eq. 0)
then 143 write(0,*)
'not exists' 145 write(0,*)
' cannot be opened ' 148 *
"It's ok if you don't merge hybrid data file" 151 write(0,*) hyb0(1:leng),
' opened' 195 integer icon0, iconhyb
197 character*6 histid0, oldhist
202 leng = kgetenv2(
"HISTFILE0", hist0)
204 if(icon0 .ne. 1)
then 205 write(0,*)
"File specified by HISTFILE0 " 207 if( icon0 .eq. 0)
then 208 write(0,*)
'not exists' 210 write(0,*)
' cannot be opened ' 212 write(0,*)
' icon=',icon0
215 write(0,*) hist0(1:leng),
' opened' 217 leng = kgetenv2(
"OLDHIST", oldhist)
218 if( oldhist .eq.
"yes")
then 219 write(0,*)
' old histogram format is assumed' 220 call kwhistfmt(.
true.)
222 call kwhistfmt(.
false.)
226 read( fn0, end=1000 ) histid0
231 if( histid0 .eq.
'#hist1' )
then 237 if(icon0 .eq. 1)
then 243 elseif(histid0 .eq.
'#hist2' )
then 244 call kwhistr2(h20, fn0, icon0)
245 if(icon0 .eq. 1)
then 248 call kwhists2(h20, normf)
249 call kwhistpr2(h20, -6)
251 elseif(histid0 .eq.
'#hist3' )
then 252 call kwhistr3(h30, fn0, icon0)
253 if(icon0 .eq. 1)
then 256 call kwhists3(h30, normf)
257 call kwhistpr3(h30, -6)
260 write(0,*)
'histid=', histid0,
' invalid' 265 write(0,*)
'all events processed '
real *8, dimension(ndepth) nmu0
real *8, dimension(ndepth) esize0
void kwhistd(struct histogram1 *h)
real *8, dimension(ndepth) ng0
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
subroutine copenfw2(io, fnin, form, icon)
void kwhistr(struct histogram1 *h, FILE *bfnor, int icon)
real *8, dimension(ndepth) cogdep0
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
real *8, dimension(ndepth) ne0
void kwhists(struct histogram1 *h, float inorm)
void kwhistpr(struct histogram1 *h, FILE *fno)
real *8, dimension(ndepth) munit
real *8, dimension(ndepth) seloss0
real *8, dimension(ndepth) age0
real *8, dimension(ndepth) asdep
integer, parameter ndepth