Geant4_10
gutrak.F
Go to the documentation of this file.
1 
2 
3  SUBROUTINE gutrak
4 *
5 * User routine to control tracking of one track
6 * Called by GTREVE
7 *
8 #include "geant321/gckine.inc"
9 #include "geant321/gctrak.inc"
10 #include "celoss.inc"
11 
12 *
13 *
14 * *** initialisation track per track
15  nstrk0 = 0
16  nstrk1 = 0
17 *
18  CALL gtrack
19 *
20 * *** count nb of tracks
21  IF (charge.NE.0.) THEN
22  ntrak1 = ntrak1 + 1
23  ELSE
24  ntrak0 = ntrak0 + 1
25  ENDIF
26 *
27 * *** track length of primary particle
28  IF ((itra.EQ.1).AND.(istak.EQ.0)) THEN
29  CALL hfill(1,sleng*10,0.,1.)
30  nstrk = nstrk0
31  if (charge.NE.0.) nstrk = nstrk1
32  CALL hfill(2,REAL(nstrk),0.,1.)
33  ENDIF
34 *
35  END
subroutine gutrak
Definition: gutrak.F:3