Changeset 1145


Ignore:
Timestamp:
01/09/02 15:49:37 (23 years ago)
Author:
blanch
Message:
Sanity check to avoid searching to pedestals outside the camera
size has been added.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MCerPhotCalc.cc

    r1127 r1145  
    125125    {
    126126
    127         const UInt_t pixid = pixel.GetPixelId();
     127        UInt_t pixid = pixel.GetPixelId();
    128128
    129129        const MPedestalPix &ped = (*fPedestals)[pixid];
     130
     131        //
     132        // sanity check
     133        //
     134        if (!fPedestals->CheckBounds(pixid)){
     135            *fLog<<inf<<"Pixel ID larger than camera ... Skip the event"<<endl;
     136            return kCONTINUE;
     137        }
    130138
    131139        Float_t nphot = (Float_t)pixel.GetSumHiGainSamples();
     
    146154    return kTRUE;
    147155}
    148 
Note: See TracChangeset for help on using the changeset viewer.