Geant4_10
gutrev.F
Go to the documentation of this file.
1 
2  SUBROUTINE gutrev
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 *
27  END
subroutine gutrev
Definition: gutrev.F:2