Changeset 3829 for trunk/MagicSoft/Mars/mbadpixels
- Timestamp:
- 04/25/04 01:55:22 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.cc
r3802 r3829 201 201 // Do not use blind neighbors 202 202 // 203 if ((*fBadPixels)[ i].IsBad())203 if ((*fBadPixels)[nidx].IsBad()) 204 204 continue; 205 205 … … 225 225 } 226 226 227 //228 // Now the mean is calculated and the values rescaled back229 // to the pixel area230 //231 nphot[i] /= (num*ratio);232 perr[i] = TMath::Sqrt(perr[i]/(num*ratio));233 234 227 // Check if there are enough neighbors to calculate the mean 235 228 // If not, unmap the pixel. The maximum number of blind neighbors … … 241 234 } 242 235 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 243 243 pix->Set(nphot[i], perr[i]); 244 244 } … … 299 299 // Do not use blind neighbors 300 300 // 301 if ((*fBadPixels)[ i].IsBad())301 if ((*fBadPixels)[nidx].IsBad()) 302 302 continue; 303 303
Note:
See TracChangeset
for help on using the changeset viewer.