| [807] | 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
|
|---|