hec_dig_evt.f        [#]

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

    ( is called by:   hec_evt.f  , hec_online_pass1.f   )
 

    includes the following commons:

    hec_par.inc
    hec_adc.inc
    hec_datacard.inc
    hec_dig.inc
    hec_dig_sys.inc
    hec_geo.inc
   hec_ped.inc
    hec_tdc.inc
 

    This routine finds the signal peak with digital filtering.

    First initialize variables.
    Then obtain time phases and calculate the weights for each time slice
    by calling:

    hec_dig_calc_weights

    Next apply the weights and perform the fit with a call to:

    hec_dig_fit(ic, signal, signal_max, time_of_max)

    And finally fill the results into the hec_dig common block.