6 #include "geant321/gcflag.inc"
7 #include "geant321/gckine.inc"
8 #include "geant321/gcking.inc"
9 #include "geant321/gctrak.inc"
16 data amm, amev /1.
e-1, 1.
e-3/
18 if (ievent.eq.1) fnorm = amm/(
nevent*amev*binwidth(1)*histunit(1))
21 IF (idebug.NE.0) CALL gpcxyz
22 IF (idebug.NE.0) CALL gpgkin
23 IF ((iswit(1).EQ.1).AND.(charge.NE.0.)) CALL gsxyz
24 IF (iswit(1).EQ.2) CALL gsxyz
27 IF(ngkine.GT.0) CALL gsking(0)
29 if (destep.le.0.)
return
32 eevent = eevent + destep
35 xlen = 0.5*sizex +
vect(1)
38 & call hfill(ih,xlen/histunit(ih),0.,fnorm*destep)
42 if (istak.eq.0) ih = 4
43 if (istak*charge.ne.0.) ih = 7
44 if ((ih.gt.0).and.(histo(ih)))
45 & call hfill(ih,step/histunit(ih),0.,1.)