Ignore:
Timestamp:
04/25/04 01:55:22 (21 years ago)
Author:
moralejo
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r3802 r3829  
    201201            // Do not use blind neighbors
    202202            //
    203             if ((*fBadPixels)[i].IsBad())
     203            if ((*fBadPixels)[nidx].IsBad())
    204204                continue;
    205205
     
    225225        }
    226226
    227         //
    228         // Now the mean is calculated and the values rescaled back
    229         // to the pixel area
    230         //
    231         nphot[i] /= (num*ratio);
    232         perr[i]   = TMath::Sqrt(perr[i]/(num*ratio));
    233  
    234227        // Check if there are enough neighbors to calculate the mean
    235228        // If not, unmap the pixel. The maximum number of blind neighbors
     
    241234        }
    242235
     236        //
     237        // Now the mean is calculated and the values rescaled back
     238        // to the pixel area
     239        //
     240        nphot[i] /= (num*ratio);
     241        perr[i]   = TMath::Sqrt(perr[i]/(num*ratio));
     242 
    243243        pix->Set(nphot[i], perr[i]);
    244244    }
     
    299299            // Do not use blind neighbors
    300300            //
    301             if ((*fBadPixels)[i].IsBad())
     301            if ((*fBadPixels)[nidx].IsBad())
    302302                continue;
    303303
Note: See TracChangeset for help on using the changeset viewer.