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)
28 write(0,*)
'give name of ' 29 write(0,*)
' input SkelFile' 30 write(0,*)
' event num file' 31 write(0,*)
' ouput SkelFile' 32 write(0,*)
' 1/0 depending on event num file has IR' 34 *
'e.g echo "skelfile Seed outskel 0" | randomselPCLinuxIFC' 41 read( stro(4), * ) withir
42 open(rdev, file=skelin(1:
klena(skelin)), form=
'unformatted',
45 open(ndev, file=numbin(1:
klena(numbin)), form=
'formatted',
48 open(mdev, file=mskel(1:
klena(mskel)), form=
'unformatted',
54 if(withir .eq. 0)
then 55 read(ndev, *, end= 1000) nev
57 read(ndev, *, end= 1000) irevent, nev
61 read(rdev, end= 1000) cumnum, num, irevent, zfirst
62 if(cumnum .gt. nev)
then 63 write(msg,*)
'specified event #=',nev,
64 *
' not exist in skeleton-node file' 66 write(msg,*)
'skip to event=',cumnum
69 do while(nev .lt. cumnum)
70 if(withir .eq. 0)
then 71 read(ndev, *, end= 1000) nev
73 read(ndev, *, end= 1000) irevent, nev
79 write(mdev) cumnum, num, irevent, zfirst
83 do while (nlow .ne. -1)
99 *
' all events copied', 1)
105 #include "Zprivate.h" 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