Changeset 6683 for trunk


Ignore:
Timestamp:
02/28/05 16:37:54 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6682 r6683  
    2626     - fixed bug in inter-calibration hi-logain for arrival times.
    2727
     28   * mhcalib/MHCalibrationPulseTimeCam.[h,cc]
     29     - fixed the situation where the maximum bin is already found in the
     30       low-gain samples.
    2831
    2932 2005/02/25 Abelardo Moralejo
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc

    r6611 r6683  
    353353        continue;
    354354
    355       const Float_t timehi = (Float_t)pixel.GetIdxMaxHiGainSample();
    356 
    357       histhi.FillHist(timehi);
     355      const Byte_t slicehi = pixel.GetMaxHiGainSample();
     356      const Byte_t slicelo = pixel.GetMaxLoGainSample();
     357
     358      Float_t time = 0.;
     359
     360      if (slicehi > slicelo)
     361        time = (Float_t)pixel.GetIdxMaxHiGainSample();
     362      else
     363        time = (Float_t)pixel.GetIdxMaxLoGainSample();
     364
     365      histhi.FillHist(time);
    358366       
    359367      const Int_t aidx   = (*fGeom)[i].GetAidx();
    360368      const Int_t sector = (*fGeom)[i].GetSector();
    361369
    362       fSumhiarea[aidx]      += timehi;
    363       fSumhisector[sector]  += timehi;
     370      fSumhiarea[aidx]      += time;
     371      fSumhisector[sector]  += time;
    364372
    365373    }
Note: See TracChangeset for help on using the changeset viewer.