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

Legend:

Unmodified
Added
Removed
  • 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; }
Note: See TracChangeset for help on using the changeset viewer.