7 integer num, cumnum, irevent(2), i, nr, ndev, withir, nev
10 character*80 skelin, stro(3), numbin
26 call ksplit(str, 80, 3, stro, nr)
27 if(nr .lt. 3) stop
'must give 2 files and flag ' 31 read( stro(3), * ) withir
34 open(rdev, file=skelin(1:
klena(skelin)), form=
'unformatted',
37 open(ndev, file=numbin(1:
klena(numbin)), form=
'formatted',
43 if(withir .eq. 0)
then 44 read(ndev, *, end= 1000) nev
46 read(ndev, *, end= 1000) irevent, nev
50 read(rdev, end= 1000) cumnum, num, irevent, zfirst
51 if(cumnum .gt. nev)
then 52 write(msg,*)
'specified event #=',nev,
53 *
' not exist in skeleton-node file' 55 write(msg,*)
'skip to event=',cumnum
58 do while(nev .lt. cumnum)
59 if(withir .eq. 0)
then 60 read(ndev, *, end= 1000) nev
62 read(ndev, *, end= 1000) irevent, nev
68 call toasciih( cumnum, num, irevent, zfirst)
72 do while (nlow .ne. -1)
88 *
' all events finished', 1)
subroutine ksplit(a, m, n, b, nr)
subroutine cerrormsg(msg, needrtn)
subroutine toasciih(cnum, num, ir, zf)
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 p
integer function klena(cha)
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 toasciin(nlow, pp)
dE dx *! Nuc Int sampling table c