Ignore:
Timestamp:
02/28/05 16:37:54 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.