Changeset 4465 for trunk/MagicSoft/Mars
- Timestamp:
- 08/04/04 14:13:50 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.cc
r3829 r4465 16 16 ! 17 17 ! 18 ! Author(s): Oscar Blanch 19 ! Author(s): Thomas Bretz 18 ! Author(s): Oscar Blanch 12/2001 <mailto:blanch@ifae.es> 19 ! Author(s): Thomas Bretz 08/2002 <mailto:tbretz@astro.uni.wuerzburg.de> 20 20 ! 21 ! Copyright: MAGIC Software Development, 2000-200 321 ! Copyright: MAGIC Software Development, 2000-2004 22 22 ! 23 23 ! … … 91 91 // -------------------------------------------------------------------------- 92 92 // 93 // Returns the status of a pixel. If kSloppyTreatment is set a pixel must 94 // be unsuitable to be treated. If not it is enough if it is unreliable 95 // (IsBad() checks for any flag) 96 // 97 Bool_t MBadPixelsTreat::IsPixelBad(Int_t idx) const 98 { 99 return TESTBIT(fFlags, kSloppyTreatment) ? (*fBadPixels)[idx].IsUnsuitable() : (*fBadPixels)[idx].IsBad(); 100 } 101 102 // -------------------------------------------------------------------------- 103 // 93 104 // - Try to find or create MBlindPixels in parameter list. 94 105 // - get the MCerPhotEvt from the parlist (abort if missing) … … 156 167 // Check whether pixel with idx i is blind 157 168 // 158 if (pix && (*fBadPixels)[i].IsOK())169 if (pix && !IsPixelBad(i)) 159 170 continue; 160 171 … … 201 212 // Do not use blind neighbors 202 213 // 203 if ( (*fBadPixels)[nidx].IsBad())214 if (IsPixelBad(nidx)) 204 215 continue; 205 216 … … 263 274 // Check whether pixel with idx i is blind 264 275 // 265 if ( (*fBadPixels)[i].IsOK())276 if (!IsPixelBad(i)) 266 277 continue; 267 278 … … 299 310 // Do not use blind neighbors 300 311 // 301 if ( (*fBadPixels)[nidx].IsBad())312 if (IsPixelBad(nidx)) 302 313 continue; 303 314 … … 513 524 MCerPhotPix &pix = (*fEvt)[i]; 514 525 515 if ( (*fBadPixels)[pix.GetPixId()].IsBad())526 if (IsPixelBad(pix.GetPixId())) 516 527 pix.SetPixelUnmapped(); 517 528 }
Note:
See TracChangeset
for help on using the changeset viewer.