7 integer num, cumnum, irevent(2), i, nr, ndev, withir, nev
10 character*80 skelin, stro(4), numbin
26 call ksplit(str, 80, 4, stro, nr)
27 if(nr .lt. 4) stop
'must give 3 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',
40 open(mdev, file=mskel(1:
klena(mskel)), form=
'unformatted',
46 if(withir .eq. 0)
then 47 read(ndev, *, end= 1000) nev
49 read(ndev, *, end= 1000) irevent, nev
53 read(rdev, end= 1000) cumnum, num, irevent, zfirst
54 if(cumnum .gt. nev)
then 55 write(msg,*)
'specified event #=',nev,
56 *
' not exist in skeleton-node file' 58 write(msg,*)
'skip to event=',cumnum
61 do while(nev .lt. cumnum)
62 if(withir .eq. 0)
then 63 read(ndev, *, end= 1000) nev
65 read(ndev, *, end= 1000) irevent, nev
71 write(mdev) cumnum, num, irevent, zfirst
75 do while (nlow .ne. -1)
91 *
' all events copied', 1)
subroutine ksplit(a, m, n, b, nr)
subroutine cerrormsg(msg, needrtn)
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
dE dx *! Nuc Int sampling table c