Changeset 3839 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
04/26/04 18:43:20 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3838 r3839  
    4747
    4848   * mbadpixels/MBadPixelsPix.[h,cc]
     49   * mbadpixels/MBadPixelsCam.cc
    4950     - removed bits: kHiGainNotCalibrated and kLoGainNotCalibrated
    50      - added bit: kDeviatingFFactor
    51 
     51     - added bits: kDeviatingFFactor, kConversionHiLoNotValid
     52     - removed functions: IsCalibrationResultOK()
     53        and IsCalibrationSignalOK()
     54
     55   * mcalib/MCalibrate.cc
     56   * mcalib/MCalibrateRelTime.cc
     57     - exchanged query for IsCalibrationResultOK() to
     58       IsUnsuitableRun(MBadPixelsPix::kUnsuitableRun). This includes
     59       now the oscillating pixels (which are sometimes many!!)
    5260
    5361 2004/04/26: Abelardo Moralejo
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc

    r3736 r3839  
    323323// 4: MBadPixelsPix::IsHiGainBad()
    324324// 5: MBadPixelsPix::IsLoGainBad()
    325 // 6: !MBadPixelsPix::IsCalibrationSignalOK()
    326 // 7: !MBadPixelsPix::IsCalibrationResultOK();
    327325// 8: MBadPixelsPix::IsUncalibrated(MBadPixelsPix::kHiGainNotFitted)
    328326// 9: MBadPixelsPix::IsUncalibrated(MBadPixelsPix::kLoGainNotFitted)
     
    360358    case 5:
    361359      return (*this)[idx].IsLoGainBad();
    362     case 6:
    363       return !(*this)[idx].IsCalibrationSignalOK();
    364     case 7:
    365       return !(*this)[idx].IsCalibrationResultOK();
    366360    case 8:
    367361      return (*this)[idx].IsUncalibrated(MBadPixelsPix::kHiGainNotFitted);
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.cc

    r3601 r3839  
    5555// BIT(12): kMeanTimeInFirstBin  :  The signal has its mean maximum in the first used FADC slice - signal extractor bad
    5656// BIT(13): kMeanTimeInLast2Bins :  The signal has its mean maximum in the last two used FADC slice - signal extractor bad
    57 // BIT(14): kDeviatingNumPhes    :  The calculated number of photo-electrons deviates too much from the mean - inconsitency
     57// BIT(14): kDeviatingNumPhes    :  The calculated number of photo-electrons deviates too much from the mean - inconsistency
     58// BIT(15): kDeviatingFFactor    :  The calculated overall F-Factor deviates too much from the mean - inconsistency
     59// BIT(16): kConversionHiLoNotValid: The calibrated Conversion between Hi-Gain and Low Gain gives absurd results
    5860//
    5961// These bits can be called with the enum MBadPixelsPix::UncalibratedType_t in combination
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.h

    r3632 r3839  
    2828    // All types are initialized to normal behaviour
    2929    enum UncalibratedType_t {
    30       kHiGainNotCalibrated      = BIT(1),
    31       kLoGainNotCalibrated      = BIT(2),
    32       kHiGainNotFitted          = BIT(3),
    33       kLoGainNotFitted          = BIT(4),
    34       kRelTimeNotFitted         = BIT(5),
    35       kHiGainOscillating        = BIT(6),
    36       kLoGainOscillating        = BIT(7),
    37       kRelTimeOscillating       = BIT(8),
    38       kLoGainSaturation         = BIT(9),
    39       kChargeIsPedestal         = BIT(10),
    40       kChargeErrNotValid        = BIT(11),
    41       kChargeRelErrNotValid     = BIT(12),
    42       kChargeSigmaNotValid      = BIT(13),
    43       kMeanTimeInFirstBin       = BIT(14),
    44       kMeanTimeInLast2Bins      = BIT(15),
    45       kDeviatingNumPhes         = BIT(16)
     30      kHiGainNotFitted          = BIT(1),
     31      kLoGainNotFitted          = BIT(2),
     32      kRelTimeNotFitted         = BIT(3),
     33      kHiGainOscillating        = BIT(4),
     34      kLoGainOscillating        = BIT(5),
     35      kRelTimeOscillating       = BIT(6),
     36      kLoGainSaturation         = BIT(7),
     37      kChargeIsPedestal         = BIT(8 ),
     38      kChargeErrNotValid        = BIT(9 ),
     39      kChargeRelErrNotValid     = BIT(10),
     40      kChargeSigmaNotValid      = BIT(11),
     41      kMeanTimeInFirstBin       = BIT(12),
     42      kMeanTimeInLast2Bins      = BIT(13),
     43      kDeviatingNumPhes         = BIT(14),
     44      kDeviatingFFactor         = BIT(15),
     45      kConversionHiLoNotValid   = BIT(16)
    4646    };
    4747   
     
    6666    Bool_t IsLoGainBad() const { return IsUnsuitable  (kUnsuitableRun      )
    6767                                     || IsUncalibrated(kLoGainSaturation   )
    68                                      || IsUncalibrated(kLoGainNotCalibrated)
     68                                     || IsUncalibrated(kConversionHiLoNotValid)
    6969                                     || IsUncalibrated(kLoGainOscillating  ) ; }
    7070    Bool_t IsHiGainBad() const { return IsUnsuitable  (kUnsuitableRun      )
    71                                      || IsUncalibrated(kHiGainNotCalibrated)
    7271                                     || IsUncalibrated(kHiGainOscillating  ) ; }
    73 
    74     Bool_t IsCalibrationSignalOK() const  { return !( IsUncalibrated(kChargeIsPedestal    )
    75                                                    || IsUncalibrated(kChargeErrNotValid   )
    76                                                    || IsUncalibrated(kChargeRelErrNotValid)
    77                                                    || IsUncalibrated(kChargeSigmaNotValid )
    78                                                    || IsUncalibrated(kMeanTimeInFirstBin  )
    79                                                    || IsUncalibrated(kMeanTimeInLast2Bins )  );  }
    80 
    81     Bool_t IsCalibrationResultOK() const  {  return  !IsUnsuitable(kUnsuitableRun)
    82                                                   &&  IsCalibrationSignalOK()
    83                                                   && !IsHiGainBad()
    84                                                   && !IsLoGainBad() ; }
    8572
    8673    void Merge(const MBadPixelsPix &pix);
  • trunk/MagicSoft/Mars/mcalib/MCalibrate.cc

    r3792 r3839  
    293293            {
    294294              MBadPixelsPix         &bad = (*fBadPixels)[pixidx];
    295               if (!bad.IsCalibrationResultOK())
     295              if (!bad.IsUnsuitable(MBadPixelsPix::kUnsuitableRun))
    296296                continue;
    297297            }
  • trunk/MagicSoft/Mars/mcalib/MCalibrateRelTimes.cc

    r3757 r3839  
    164164        {
    165165          MBadPixelsPix          &bad = (*fBadPixels)[pixidx];
    166           if (!bad.IsCalibrationResultOK())
     166          if (!bad.IsUnsuitable(MBadPixelsPix::kUnsuitableRun))
    167167            continue;
    168168        }
Note: See TracChangeset for help on using the changeset viewer.