7 #include "../FleshHist/Zprivate1.h" 8 #include "../FleshHist/Zprivate3.h" 9 character*120 file, fileo
18 write(0,*)
' file name is ' 20 open(fnodat, file=file, form=
"formatted",action=
"read")
23 loc = index(file,
".dat")
24 fileo=file(1:loc)//
"bdat" 25 write(0,*)
' output filename=' 27 open(fnodat2, file=fileo, form=
"unformatted")
31 * id, eventno,
code, et, wx, wy, wz
32 write(0,*)
" id etc=",
33 * id, eventno,
code, et, wx, wy, wz
35 * eventno,
code, et, wx, wy, wz
41 read(fnodat, *, end=100)
43 * buf(
i).
charge, buf(
i).ridx, buf(
i).faiidx,
44 * buf(
i).rinmu, buf(
i).fai, buf(
i).ek,
45 * buf(
i).
t, buf(
i).wx, buf(
i).wy, buf(
i).wz
47 read(fnodat, *, end=100)
49 * buf(
i).
charge, buf(
i).ridx, buf(
i).faiidx,
50 * buf(
i).rinmu, buf(
i).fai, buf(
i).ek,
51 * buf(
i).
t, buf(
i).wx, buf(
i).wy, buf(
i).wz,
55 if(bufc .eq. bufsize)
then 56 write(fnodat2) bufc, buf
62 write(fnodat2) bufc, buf
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
*Zfirst p fm *Zfirst p Zfirst p code
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p charge
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz Zfirst pos xyz *Zfirst pos *Zfirst pos Zfirst pos *Zfirst pos *Zfirst Zfirst vec w *Zfirst vec w Zfirst vec *Zfirst wgt
*Zfirst p fm *Zfirst p Zfirst p Zfirst p subcode