Changeset 7575 for trunk


Ignore:
Timestamp:
03/07/06 10:33:26 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7574 r7575  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20   * mcalib/MCalibrateData.cc:
     21     - take the bad pixel information into account when calculating the
     22       number of saturating pixels!
     23
     24
    2025 2006/03/06 Thomas Bretz
    2126
  • trunk/MagicSoft/Mars/NEWS

    r7566 r7575  
    1313
    1414   - showplot: path inflation for ganymed files was broken
     15
     16   - callisto: Fixed an important bug. When the number of saturating pixels
     17     were calculated the bad pixel information already available from the
     18     calibration was ignored. This yields wrong values in case pixels
     19     are broken and saturate all the time or randomly.
    1520
    1621   - star: The time-evolution shown in the effective on-time plot now displays
  • trunk/MagicSoft/Mars/mcalib/MCalibrateData.cc

    r7374 r7575  
    783783            const Float_t nphot    = signal                         * fCalibConsts  [pixidx];
    784784            const Float_t nphotErr = TMath::Sqrt(TMath::Abs(nphot)) * fCalibFFactors[pixidx];
    785            
     785
    786786            fCerPhotEvt->AddPixel(pixidx, nphot, nphotErr);
    787787
    788             if (sig.GetNumHiGainSaturated() > 0)
    789                 numsathi++;
    790 
    791             if (sig.GetNumLoGainSaturated() > 0)
    792                 numsatlo++;
     788            if (!(*fBadPixels)[pixidx].IsUnsuitable())
     789            {
     790                if (sig.GetNumHiGainSaturated() > 0)
     791                    numsathi++;
     792
     793                if (sig.GetNumLoGainSaturated() > 0)
     794                    numsatlo++;
     795            }
    793796        } /* if (data) */
    794797     
Note: See TracChangeset for help on using the changeset viewer.