7 integer num, cumnum, irevent(2), i, nr, firstev, lastev
10 character*80 skelin, stro(4)
26 call ksplit(str, 80, 4, stro, nr)
27 if(nr .lt. 4) stop
'must give 2 files and 2 event #' 30 read( stro(2), * ) firstev
31 read( stro(3), * ) lastev
35 open(rdev, file=skelin(1:
klena(skelin)), form=
'unformatted',
37 open(mdev, file=mskel(1:
klena(mskel)), form=
'unformatted',
41 read(rdev, end= 1000) cumnum, num, irevent, zfirst
43 if(cumnum .gt. lastev)
goto 1000
45 copy =cumnum .ge. firstev .and. cumnum .le. lastev
47 write(mdev) cumnum, num, irevent, zfirst
51 do while (nlow .ne. -1)
65 if(lastev .gt. cumnum)
then 67 *
'EOF before the specified last event reached; ok?', 1)
70 *
' all events copied successfully', 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)
dE dx *! Nuc Int sampling table c