Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
guout.F
Go to the documentation of this file.
1 
2  SUBROUTINE guout
3 *
4 * called at end of event
5 *
6 #include "geant321/gcflag.inc"
7 *
8 #include "runinfo.inc"
9 #include "histo.inc"
10 *
11 * *** energy in absorber
12  if (histo(1)) call hfill(1,edep/histunit(1),0.,1.)
13  sedep = sedep + edep
14  sedep2 = sedep2 + edep**2
15 *
16 * *** number of steps
17  sstpch = sstpch + stpch
18  sstpch2 = sstpch2 + stpch**2
19 *
20  sstpne = sstpne + stpne
21  sstpne2 = sstpne2 + stpne**2
22 *
23 * *** track length
24  strkch = strkch + trkch
25  strkch2 = strkch2 + trkch**2
26 *
27  strkne = strkne + trkne
28  strkne2 = strkne2 + trkne**2
29 *
30 * *** transmission, reflection counters
31  if (itransmi.eq.1) then
32  nbtransm(1) = nbtransm(1) + 1
33  else if (itransmi.eq.2) then
34  nbtransm(1) = nbtransm(1) + 1
35  nbtransm(2) = nbtransm(2) + 1
36  endif
37 *
38  if (ireflect.eq.1) then
39  nbreflec(1) = nbreflec(1) + 1
40  else if (ireflect.eq.2) then
41  nbreflec(1) = nbreflec(1) + 1
42  nbreflec(2) = nbreflec(2) + 1
43  endif
44 *
45 #ifndef batch
46 *
47 * *** drawing
48 *
49  IF (iswit(1).NE.0) THEN
50  CALL gdhead(110110,'TestEm5',0.)
51  CALL gdshow(3)
52  CALL gdxyz(0)
53  END IF
54 #endif
55  END