Changeset 4464 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
08/04/04 14:06:13 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4461 r4464  
    100100   * mbase/MLog.cc:
    101101     - added missing kMustCleanup bit of fPlugins
     102
     103   * mbadpixels/MBadPixelsPix.h:
     104     - added easier access to the information whether a pixel is unsuitable
     105       or unreliable
    102106
    103107
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.h

    r3932 r4464  
    2121        kUnsuitableRun = BIT(1),
    2222        kUnsuitableEvt = BIT(2),
    23         kUnreliableRun = BIT(3)
     23        kUnsuitable    = kUnsuitableRun|kUnsuitableEvt,
     24        kUnreliableRun = BIT(3),
     25        kUnreliableEvt = BIT(4),
     26        kUnreliable    = kUnreliableRun|kUnreliableEvt
    2427    };
    2528
     
    6164
    6265    // Setter
    63     void SetUnsuitable  ( UnsuitableType_t   typ ) { fInfo[0] |= typ; }
    64     void SetUncalibrated( UncalibratedType_t typ ) { fInfo[1] |= typ; }
    65     void SetHardware   ( HardwareType_t     typ ) { fInfo[2] |= typ; }
     66    void SetUnsuitable  (UnsuitableType_t   typ) { fInfo[0] |= typ; }
     67    void SetUncalibrated(UncalibratedType_t typ) { fInfo[1] |= typ; }
     68    void SetHardware    (HardwareType_t     typ) { fInfo[2] |= typ; }
    6669
    6770    // Getter
    68     Bool_t IsUnsuitable  ( UnsuitableType_t   typ ) const { return fInfo[0]&typ; }
    69     Bool_t IsUncalibrated( UncalibratedType_t typ ) const { return fInfo[1]&typ; }
    70     Bool_t IsHardwareBad ( HardwareType_t     typ ) const { return fInfo[2]&typ; }   
     71    Bool_t IsUnsuitable  (UnsuitableType_t   typ) const { return fInfo[0]&typ; }
     72    Bool_t IsUncalibrated(UncalibratedType_t typ) const { return fInfo[1]&typ; }
     73    Bool_t IsHardwareBad (HardwareType_t     typ) const { return fInfo[2]&typ; }
     74
     75    Bool_t IsUnsuitable() const { return fInfo[0]&kUnsuitable; }
     76    Bool_t IsUnreliable() const { return fInfo[0]&kUnreliable; }
    7177
    7278    Bool_t IsOK()  const { return fInfo[0]==0; }
Note: See TracChangeset for help on using the changeset viewer.