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/gckine.inc"
8 #include "geant321/gctrak.inc"
9 #include "calor.inc"
10 #include "celoss.inc"
11 #include "histo.inc"
12 *
13  CHARACTER*20 parnam,matnam
14  CHARACTER*4 unit1,unit2
15 *
16 * *** run summary
17  print 749
18  call gfpart(ikine,parnam,ityp,dum,duc,dut,udu,idu)
19  call gfmate(imat ,matnam,dua,duz,dud,dur,dui,udu,idu)
20  CALL gevkev(pkine(1),ekine,unit1)
21  print 750, ievent,parnam,ekine,unit1,sizex,matnam
22  print 749
23 *
24  fnorm = 1./ievent
25 *
26 * *** total energy deposit
27  etot = fnorm*etot
28  etot2 = fnorm*etot2
29  rms = sqrt(abs(etot2-etot**2))
30 *
31  CALL gevkev(etot,avee,unit1)
32  CALL gevkev(rms ,rmse ,unit2)
33  print 752, avee,unit1,rmse,unit2
34 *
35 * *** track length of primary track
36  trlen = fnorm*trlen
37  trlen2 = fnorm*trlen2
38  rms = sqrt(abs(trlen2-trlen**2))
39  print 753, trlen,rms
40 *
41 * *** compare with csda range from table
42  call gftmat(imat,ikine,'RANG',1,pkine(1),csdarang,dum,ixst)
43  print 763, csdarang
44 *
45 * *** projected range of primary track
46  xtrlen = fnorm*xtrlen
47  xtrlen2 = fnorm*xtrlen2
48  rms = sqrt(abs(xtrlen2-xtrlen**2))
49  print 754, xtrlen,rms
50 *
51 * *** nb of steps and step size of primary track
52  fnbstep = fnorm*nbstep
53  fnbstep2 = fnorm*nbstep2
54  rms1 = sqrt(abs(fnbstep2-fnbstep**2))
55 *
56  steplen = fnorm*steplen
57  steplen2 = fnorm*steplen2
58  rms2 = sqrt(abs(steplen2-steplen**2))
59  print 755, fnbstep,rms1,steplen,rms2
60 *
61 * *** transmission coefficients
62  absorbed = fnorm*100*kcoef(1)
63  transmit = fnorm*100*kcoef(2)
64  reflected = fnorm*100*kcoef(3)
65  print 756, absorbed, transmit, reflected
66 *
67  print 749
68 *
69 * *** geant termination
70  CALL glast
71 *
72 * *** close HIGZ
73  CALL hplend
74 *
75 * *** Save histo
76  if (iswit(2).eq.1) then
77  write(6,99) filename
78 99 format(/,15x,'histogram file --> Name: ',a25)
79  CALL hrput(0,filename,'N')
80  endif
81 *
82 * *** formats
83  749 FORMAT(/, 60(1h-),/)
84  750 FORMAT( 1x,'The run is',i8,1x,a10,' of',f8.2,a4,' through ',
85  & e12.4,' cm of ',a10)
86  752 FORMAT( 1x,'Total Energy deposited = ',
87  & f8.3, a4,' +- ', f8.3, a4)
88  753 FORMAT(/,1x,'Track length of primary track = ',
89  & e12.5,' cm +- ', e12.5,' cm')
90  763 FORMAT( 1x,'csda Range from table = ',
91  & e12.5,' cm')
92  754 FORMAT(/,1x,'Projected range = ',
93  & e12.5,' cm +- ', e12.5,' cm')
94  755 FORMAT(/,1x,'Nb of steps of primary track = ',
95  & f6.2,' +- ', f6.2,
96  & 3x,'Step size = ', e12.5,' cm +- ', e12.5,' cm')
97  756 FORMAT(/,1x,'absorbed = ',f6.2,' %',3x,'transmit = ', f6.2,' %',
98  & 3x,'reflected = ', f6.2,' %')
99 *
100  END
subroutine uglast
Definition: uglast.F:2
Double_t x
Definition: plot.C:279
static c2_sqrt_p< float_type > & sqrt()
make a *new object
Definition: c2_factory.hh:142
G4double rms()
void print(const std::vector< T > &data)
Definition: DicomRun.hh:111