16 include
"../../Hist/Z90histc.h" 17 include
"../../Hist/Z90histo.h" 18 include
"../../Hist/Z90hist1.h" 19 include
"../../Hist/Z90hist2.h" 20 include
"../../Hist/Z90hist3.h" 22 type(histogram2) h20, h2x, h2t
23 type(histogram3) h30, h3x, h3t
30 integer icon0, iconx, icont
31 character*128 hist0, histx, histt
32 character*6 histid0, histidx, oldhist
40 write(0,*) hist0(1:
leng)
41 if( icon0 .eq. 0)
then 42 write(0,*)
'not exists' 44 write(0,*)
' cannot be opened ' 46 write(0,*)
' icon=',icon0
49 write(0,*) hist0(1:
leng),
' opened' 54 write(0,*) histx(1:
leng)
55 if( iconx .eq. 0)
then 56 write(0,*)
'not exists' 58 write(0,*)
' cannot be opened ' 60 write(0,*)
' icon=',iconx
63 write(0,*) histx(1:
leng),
' opened' 69 write(0,*) histt(1:
leng)
70 write(0,*)
' cannot be opened ' 71 write(0,*)
' icon=',icont
74 write(0,*) histt(1:
leng),
' opened' 78 if(oldhist .eq.
"yes")
then 79 write(0,*)
' old histogram format is assumed' 80 call kwhistfmt(.
true.)
82 write(0,*)
' new histogram format is assumed' 85 read( fn0, end=1000 ) histid0
87 if(histid0 .ne. histidx)
then 88 write(0,*) histid0, histidx,
' differ' 91 if( histid0 .eq.
'#hist1' )
then 100 elseif(histid0 .eq.
'#hist2' )
then 101 call kwhistr2(h20, fn0, icon0)
102 call kwhistr2(h2x, fnx, iconx)
103 call kwhista2(h20, h2x, h2t)
104 call kwhistw2(h2t, fnt)
108 elseif(histid0 .eq.
'#hist3' )
then 109 call kwhistr3(h30, fn0, icon0)
110 call kwhistr3(h3x, fnx, iconx)
111 call kwhista3(h30, h3x, h3t)
112 call kwhistw3(h3t, fnt)
117 write(0,*)
'histid=', histid0,
' invalid' 122 write(0,*)
'all data processed ' integer function kgetenv2(envname, envresult)
void kwhistd(struct histogram1 *h)
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 kwhista(struct histogram1 *h1, struct histogram1 *h2, struct histogram1 *h)
void kwhistr(struct histogram1 *h, FILE *bfnor, int icon)
void kwhistw(struct histogram1 *h, FILE *bfnow)