Changeset 4559 for trunk/MagicSoft
- Timestamp:
- 08/10/04 12:31:54 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4556 r4559 19 19 20 20 -*-*- END OF LINE -*-*- 21 22 2004/08/10: Nadia Tonello 23 24 * mbadpixels/MBadPixelsTreat.[h,cc] 25 - replaced flag SetSloppyTreatment() with SetHardTreatment() 26 Now the default behaviour consists on treating only the 27 unsuitable pixels, and not also the ureliable, as it was 28 before. If you want to keep on treating both unsuitable and 29 unreliable pixels, please set the new flag on in your macro. 30 31 * mjobs/MJExtractCalibTest.cc 32 - removed line containing SetSloppyTreatment() 21 33 22 34 -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.cc
r4467 r4559 38 38 // should be set using SetNumMinNeighbors 39 39 // 40 // If you don't want to interpolate unreliable pixels but onlyunsuitable41 // (broken) pixels use Set SloppyTreatment().40 // If you want to interpolate unreliable pixels and unsuitable 41 // (broken) pixels use SetHardTreatment(). 42 42 // 43 43 // … … 95 95 // -------------------------------------------------------------------------- 96 96 // 97 // Returns the status of a pixel. If kSloppyTreatment is set a pixel must 98 // be unsuitable to be treated. If not it is enough if it is unreliable 97 // Returns the status of a pixel. If kHardTreatment is set a pixel must 98 // be unsuitable or uriliable to be treated. If not it is treated only if 99 // it is unsuitable 99 100 // (IsBad() checks for any flag) 100 101 // 101 102 Bool_t MBadPixelsTreat::IsPixelBad(Int_t idx) const 102 103 { 103 return TESTBIT(fFlags, k SloppyTreatment) ? (*fBadPixels)[idx].IsUnsuitable() : (*fBadPixels)[idx].IsBad();104 return TESTBIT(fFlags, kHardTreatment) ? (*fBadPixels)[idx].IsBad():(*fBadPixels)[idx].IsUnsuitable() ; 104 105 } 105 106 -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.h
r4466 r4559 27 27 kUseCentralPixel = 2, 28 28 kProcessRMS = 3, 29 k SloppyTreatment = 429 kHardTreatment = 4 30 30 }; 31 31 … … 59 59 b ? SETBIT(fFlags, kProcessRMS) : CLRBIT(fFlags, kProcessRMS); 60 60 } 61 void Set SloppyTreatment(Bool_t b=kTRUE)61 void SetHardTreatment(Bool_t b=kTRUE) 62 62 { 63 b ? SETBIT(fFlags, k SloppyTreatment) : CLRBIT(fFlags, kSloppyTreatment);63 b ? SETBIT(fFlags, kHardTreatment) : CLRBIT(fFlags, kHardTreatment); 64 64 } 65 65 void SetNumMinNeighbors(Byte_t num) { fNumMinNeighbors=num; } -
trunk/MagicSoft/Mars/mjobs/MJExtractCalibTest.cc
r4542 r4559 262 262 MBadPixelsTreat badtreat; 263 263 badtreat.SetUseInterpolation(); 264 badtreat.SetSloppyTreatment();265 264 MCalibrationTestCalc testcalc; 266 265 testcalc.SetOutputPath(fOutputPath);
Note:
See TracChangeset
for help on using the changeset viewer.