Geant4  10.02.p03
TestEm1/geant3/src/gutrak.F File Reference
#include "geant321/gckine.inc"
#include "geant321/gctrak.inc"
#include "celoss.inc"
Include dependency graph for TestEm1/geant3/src/gutrak.F:

Go to the source code of this file.

Functions/Subroutines

subroutine gutrak
 

Function/Subroutine Documentation

◆ gutrak()

subroutine gutrak ( )

Definition at line 4 of file TestEm1/geant3/src/gutrak.F.

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 *