hec_cal_evt.f       [#]

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

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

    includes the following commons:

    hec_par.inc
    hec_cal.inc
    hec_cal_coef.inc
    hec_datacard.inc
    hec_geo.inc
    hec_max.inc
   hec_ped.inc
 

    This routine applies calibration coefficients to the pedestal-subtracted adc values.
    Then fill the arrays of the     hec_cal.inc     common:

         hec_cal_ic(ic)                       the energy (nA) in cell ic
         hec_cal_db(imod,iseg,ipad)  the energy (nA) in module=imod, segment=iseg and pad=ipad
         hec_cal_ph(ieta,iphi,iz)         the energy (nA) in eta=ieta, phi=iphi, z=iz
         ic_has_calib(ic)                    .true. if channel ic has good calibration coefficients
 

----------
This routine contains the following rather peculiar comment during the
application of the calibration constants::
c First coefficient should only be used by calibration expert.  So, set
c it to zero for energy reconstruction.  This implies that there is also
c a problem with the formula above... but nobody knows how to fix it.