Changeset 4559 for trunk/MagicSoft


Ignore:
Timestamp:
08/10/04 12:31:54 (20 years ago)
Author:
tonello
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4556 r4559  
    1919
    2020                                                 -*-*- 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()
    2133
    2234
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.cc

    r4467 r4559  
    3838//  should be set using SetNumMinNeighbors
    3939//
    40 //  If you don't want to interpolate unreliable pixels but only unsuitable
    41 //  (broken) pixels use SetSloppyTreatment().
     40//  If you want to interpolate unreliable pixels and unsuitable
     41//  (broken) pixels use SetHardTreatment().
    4242//
    4343//
     
    9595// --------------------------------------------------------------------------
    9696//
    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
    99100// (IsBad() checks for any flag)
    100101//
    101102Bool_t MBadPixelsTreat::IsPixelBad(Int_t idx) const
    102103{
    103     return TESTBIT(fFlags, kSloppyTreatment) ? (*fBadPixels)[idx].IsUnsuitable() : (*fBadPixels)[idx].IsBad();
     104    return TESTBIT(fFlags, kHardTreatment) ? (*fBadPixels)[idx].IsBad():(*fBadPixels)[idx].IsUnsuitable() ;
    104105}
    105106
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.h

    r4466 r4559  
    2727        kUseCentralPixel  = 2,
    2828        kProcessRMS       = 3,
    29         kSloppyTreatment  = 4
     29        kHardTreatment  = 4
    3030    };
    3131
     
    5959        b ? SETBIT(fFlags, kProcessRMS) : CLRBIT(fFlags, kProcessRMS);
    6060    }
    61     void SetSloppyTreatment(Bool_t b=kTRUE)
     61    void SetHardTreatment(Bool_t b=kTRUE)
    6262    {
    63         b ? SETBIT(fFlags, kSloppyTreatment) : CLRBIT(fFlags, kSloppyTreatment);
     63        b ? SETBIT(fFlags, kHardTreatment) : CLRBIT(fFlags, kHardTreatment);
    6464    }
    6565    void SetNumMinNeighbors(Byte_t num) { fNumMinNeighbors=num; }
  • trunk/MagicSoft/Mars/mjobs/MJExtractCalibTest.cc

    r4542 r4559  
    262262  MBadPixelsTreat       badtreat;
    263263  badtreat.SetUseInterpolation();
    264   badtreat.SetSloppyTreatment();
    265264  MCalibrationTestCalc  testcalc;
    266265  testcalc.SetOutputPath(fOutputPath);
Note: See TracChangeset for help on using the changeset viewer.