next up previous contents index
Next: Variable Registration System Up: Sample Code Previous: Example Event code   Contents   Index

Example End of Run Code

After analyzing a set of data, an analyzer program will typically save the histograms and a write out various calculations and statistics. The following example saves the histograms into a file and uses the CTP report generator to print some statistics.

  subroutine end_analysis

  implicit none

  include 'parcommon.inc'
  include 'testcommon.inc'
  include 'eventcommon.inc'

  integer*4 ierr

  hbook calls to save file
  threpout call.



Mohammad Ahmed 2003-07-23