hec_online.f        [#]

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

     ( is called by:    hec_adc.f   )

      Includes the following commons:

    hec_par.inc
    hec_datacard.inc
    hec_online.inc
 
 

    This routine controls the online mode of hec_adc.
    The following subroutines are called:

    hec_online_ini
    This routine gets things ready for online work: initialize fadc,
    call dig. filtering (if requested) and read the calibration constants.

    hec_online_getfile
    Get the datafilename that is to be monitored and initialize I/O

    hec_online_run_ini
    Vzero some arrays and initialize cubic fit

    hec_online_getnevt
    Read (from keyboard) number of events to be processed.

    hec_online_gettrig
    Select a specific kind of trigger to be looked at.

    hec_runh_pass
    Read in next event (and care about data I/O)

    hec_slow_pass
    Reads slow controls info and prints out statistics.

    hec_his_ini
    Books kazillions of histograms

    hec_online_pass1
    does a pass over the data during which just about everything is done

    hec_online_ter
    outputs system histograms
 
 

-------------------------------------
Comment from the source-code itself:

c This is the routine which controls the online running mode
c of hec_adc. The purpose of this mode is to use hec_adc standard
c routines for signal reconstruction, pedestal evaluation, etc.
c to fill several histograms which are useful to the testbeam shift
c crew. It does this as quickly as possible by fast filling histograms
c and using only one loop over the data. It can be run on existing
c data files or files which are in the process of being written by the
c testbeam DAQ.
c
c Online mode is designed to either be entered from the command
c line (by typing hec_adc) or from a script as determined by the
c "autorun" datacard. This allows scripts to be written which control
c system-dependent things (eg. printer commands) allowing the fortran
c code in hec_adc to remain completely f77-compliant.