Files
geant4/examples/extended/electromagnetic/TestEm1/geant3/src/gutrak.F
T
2016-06-08 15:42:07 +02:00

30 lines
1.2 KiB
FortranFixed

SUBROUTINE GUTRAK
*
* User routine to control tracking of one track
* Called by GTREVE
*
#include "geant321/gckine.inc"
#include "geant321/gctrak.inc"
#include "celoss.inc"
*
*
* *** initialisation track per track
NSTRK0 = 0
NSTRK1 = 0
*
CALL GTRACK
*
* *** count nb of tracks
IF (CHARGE.NE.0.) THEN
NTRAK1 = NTRAK1 + 1
CALL HFILL (1,SLENG*10,0.,1.)
CALL HFILL (2,REAL(NSTRK1),0.,1.)
ELSE
NTRAK0 = NTRAK0 + 1
ENDIF
*
END