Ignore:
Timestamp:
09/12/05 16:35:04 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbadpixels
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCalc.cc

    r7130 r7349  
    137137// too high pedestal Rms with respect to the mean.
    138138//
    139 Bool_t MBadPixelsCalc::CheckPedestalRms(MBadPixelsPix::UnsuitableType_t type) const
     139Int_t MBadPixelsCalc::CheckPedestalRms(MBadPixelsPix::UnsuitableType_t type) const
    140140{
    141141    const Bool_t checklo = fPedestalLevelVarianceLo>0;
     
    310310Int_t MBadPixelsCalc::Process()
    311311{
    312     return fCheckInProcess ? CheckPedestalRms(MBadPixelsPix::kUnsuitableEvt) : kTRUE;
     312    if (!fCheckInProcess)
     313        return kTRUE;
     314
     315    return CheckPedestalRms(MBadPixelsPix::kUnsuitableEvt) ? kTRUE : kERROR;
    313316}
    314317
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.cc

    r7117 r7349  
    441441        for (unsigned int j=0; j<time.GetSize(); j++)
    442442        {
    443             const Double_t t = (*fEvt)[j].GetArrivalTime();
    444             if (t>=0)
     443            const Int_t nn = gpix.GetNeighbor(j);
     444
     445            const Double_t t = (*fEvt)[nn].GetArrivalTime();
     446            if (t>=0 && !IsPixelBad(nn))
    445447                time[n0++] = t;
    446448        }
Note: See TracChangeset for help on using the changeset viewer.