Geant4  10.02.p03
TestEm11/geant3/src/gutrev.F File Reference
#include "celoss.inc"
#include "histo.inc"
Include dependency graph for TestEm11/geant3/src/gutrev.F:

Go to the source code of this file.

Functions/Subroutines

subroutine gutrev
 

Function/Subroutine Documentation

◆ gutrev()

subroutine gutrev ( )

Definition at line 3 of file TestEm11/geant3/src/gutrev.F.

3 *
4 * User routine to control tracking of one event
5 * Called by GRUN
6 *
7 #include "celoss.inc"
8 #include "histo.inc"
9 *
10 * *** par event initialisations
11  eevent = 0.
12 *
13 * *** process the event
14  CALL gtreve
15 *
16 * *** returns if no energy deposition
17  if (eevent.le.0.) return
18 *
19 * *** histo: total energy deposited
20  ih = 2
21  if (histo(ih)) call hfill (ih,eevent/histunit(ih),0.,1.)
22 *
23 * *** cumul energy deposited
24  etot = etot + eevent
25  etot2 = etot2 + eevent*eevent
26 *