Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
examples
extended
electromagnetic
TestEm1
geant3
src
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
Generated on Sat May 25 2013 14:32:19 for Geant4 by
1.8.4