Changeset 3801
- Timestamp:
- 04/22/04 20:02:35 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3800 r3801 53 53 * mraw/MRawRead.[h,cc]: 54 54 - added fForceMode flag to be able to suppress event errors 55 56 * mbadpixels/MBadPixelsTreat.[h,cc]: 57 - changes such that the pedestal interpolation is now done 58 only in ReInit. If you need the old behaviour call 59 SetProcessRMS() 55 60 56 61 -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.cc
r3652 r3801 235 235 // If not, unmap the pixel. The maximum number of blind neighbors 236 236 // should be 2 237 if (num< 3)237 if (num<fNumMinNeighbors) 238 238 { 239 239 pix->SetPixelUnmapped(); … … 351 351 // the Image Parameters. 352 352 // 353 /* 353 354 void MBadPixelsTreat::Interpolate() const 354 355 { … … 453 454 } 454 455 455 if (num< 2)456 if (num<fNumMinNeighbors) 456 457 { 457 458 pix->SetPixelUnmapped(); … … 492 493 } 493 494 } 495 */ 494 496 495 497 // -------------------------------------------------------------------------- … … 517 519 // -------------------------------------------------------------------------- 518 520 // 521 // Interpolate Pedestals if kProcessRMS not set 522 // 523 Bool_t MBadPixelsTreat::ReInit(MParList *pList) 524 { 525 if (!TESTBIT(fFlags, kProcessRMS)) 526 InterpolatePedestals(); 527 return kTRUE; 528 } 529 530 // -------------------------------------------------------------------------- 531 // 519 532 // Treat the blind pixels 520 533 // 521 534 Int_t MBadPixelsTreat::Process() 522 535 { 523 /*524 if (TESTBIT(fFlags, kCheckPedestalRms))525 {526 // if the number of blind pixels is too high, do not interpolate527 if (CheckPedestalRms()==kFALSE)528 return kTRUE;529 530 if (TESTBIT(fFlags, kUseInterpolation))531 InterpolatePedestals();532 }533 */534 535 536 if (TESTBIT(fFlags, kUseInterpolation) && fGeomCam) 536 Interpolate(); 537 { 538 InterpolateSignal(); 539 if (TESTBIT(fFlags, kProcessRMS)) 540 InterpolatePedestals(); 541 } 537 542 else 538 543 Unmap(); 539 540 541 //fErrors[0]++;542 544 543 545 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.