Geant4_10
uglast.F
Go to the documentation of this file.
1 
2  SUBROUTINE uglast
3 *
4 * Termination routine to print histograms and statistics
5 *
6 #include "geant321/gcflag.inc"
7 #include "geant321/gctrak.inc"
8 #include "celoss.inc"
9 *
10 * *** nb of steps and tracks per event
11  totevt = ievent
12  fntrk0 = ntrak0/totevt
13  fntrk1 = ntrak1/totevt
14  fnstp0 = nstep0/totevt
15  fnstp1 = nstep1/totevt
16  print 750, fntrk0,fntrk1,fnstp0,fnstp1
17 *
18 * *** frequency of processes call
19  CALL uctoh('MUNU',namec(12),4,4)
20  print 760,(namec(i),i=1,12)
21  print 761,(nbcall(i)/totevt,i=1,12)
22 *
23 * *** geant termination
24  CALL glast
25 *
26 * *** print selected histo
27 
28 *
29 * *** close HIGZ file
30  CALL hplend
31 *
32 * *** Save selected histograms
33  IF (iswit(2).EQ.1) THEN
34  CALL hrput(0,'testem1.hbook','N')
35  ENDIF
36 *
37 * *** formats
38  750 FORMAT(//,1x,'nb tracks/event neutral: ',f9.2,' charged: ',f9.2,
39  + /,1x,'nb steps/event neutral: ',f9.2,' charged: ',f9.2)
40 
41  760 FORMAT(//,1x,'nb of process calls per event: ',
42  + /,3x,12a12)
43  761 FORMAT( 3x,12f12.4,//)
44 *
45  END
subroutine uglast
Definition: uglast.F:2
Double_t x
Definition: plot.C:279
void print(const std::vector< T > &data)
Definition: DicomRun.hh:111