Ignore:
Timestamp:
04/25/07 15:39:43 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc

    r8434 r8446  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.37 2007-04-23 19:06:28 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.38 2007-04-25 14:39:43 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    390390
    391391        // Get position of maximum
    392         const Int_t   pos = evt->GetMax(idx/*, first, last*/);
     392        const Int_t   pos = evt->GetMax(idx);
    393393        const Float_t max = evt->GetSamples(idx)[pos];
    394394
     
    413413    for (UInt_t j=0; j<nareas; j++)
    414414    {
    415         const Int_t npix = fAverageAreaNum[j];
    416 
    417         if (npix > fNumPixelsRequired)
     415        if (fAverageAreaNum[j] > fNumPixelsRequired)
    418416        {
     417            sumarea[j] /= fAverageAreaNum[j];
     418
    419419            if (IsOscillations())
    420                 GetAverageHiGainArea(j).FillHistAndArray(sumarea[j]/npix);
     420                GetAverageHiGainArea(j).FillHistAndArray(sumarea[j]);
    421421            else
    422                 GetAverageHiGainArea(j).FillHist(sumarea[j]/npix);
     422                GetAverageHiGainArea(j).FillHist(sumarea[j]);
    423423
    424424        }
     
    427427    for (UInt_t j=0; j<nsectors; j++)
    428428    {
    429         const Int_t npix = fAverageSectorNum[j];
    430 
    431         if (npix > 0)
     429        if (fAverageSectorNum[j] > 0)
    432430        {
     431            sumsector[j] /= fAverageSectorNum[j];
     432
    433433            if (IsOscillations())
    434                 GetAverageHiGainSector(j).FillHistAndArray(sumsector[j]/npix);
     434                GetAverageHiGainSector(j).FillHistAndArray(sumsector[j]);
    435435            else
    436                 GetAverageHiGainSector(j).FillHist(sumsector[j]/npix);
     436                GetAverageHiGainSector(j).FillHist(sumsector[j]);
    437437        }
    438438    }
Note: See TracChangeset for help on using the changeset viewer.