hec_online_pass1.f        [#]

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

    ( is called by:    hec_online.f    )

    It includes the following commons:

    hec_par.inc
    hec_adc.inc
    hec_datacard.inc
    hec_dig.inc
    hec_dig_sys.inc
    hec_evth.inc
    hec_geo.inc
    hec_max.inc
    hec_online.inc
    hec_ped.inc
    hec_trig.inc
 

    Then a pass over the data is done by calling the following routines:

    hec_io_pass_ini
    calls   hec_stats_ini.f   nd initializes a list of counters

    --- Start loop over events

                hec_nextevt
                reads in next event

                hec_trig_evt
                defines a good number of triggers.

                hec_online_mwpc
                gets mwpc clusters and does beam profile histograms
                (if:   goflag .or. i_event .eq. 1 )

                hec_ped_evt1
                computes pedestal for the event

                hec_ped_fill
                fills the pedestal arrays

                 hec_tdc_evt
                 processes raw tdc time

                 hec_cub_evt
                 performs simple cubic fit  (if   m_pref=1)
 
                 hec_dig_evt
                 finds signal peak with dig. filtering  (if   m_pref=2))

                 hec_max_fill
                 fills the adc_max arryas

                 hec_online_evt1
                 apply calibration and fill online histograms
 

                 hec_io_pass_evt
                 calls mzwipe if reading Zebra files

    The event loop is done now.

    hec_his_book_ana
    books online histograms

    hec_online_ana1
    calculates pedestals, fills histograms, produces run sheet

    hec_his_fit
    fits Z-clusters and impact point clusters

    hec_his_fit_output
    fills the output files
 
 

    hec_io_pass_ter
    handles the end of data I/O