Changeset 3839 for trunk/MagicSoft/Mars
- Timestamp:
- 04/26/04 18:43:20 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3838 r3839 47 47 48 48 * mbadpixels/MBadPixelsPix.[h,cc] 49 * mbadpixels/MBadPixelsCam.cc 49 50 - 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!!) 52 60 53 61 2004/04/26: Abelardo Moralejo -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc
r3736 r3839 323 323 // 4: MBadPixelsPix::IsHiGainBad() 324 324 // 5: MBadPixelsPix::IsLoGainBad() 325 // 6: !MBadPixelsPix::IsCalibrationSignalOK()326 // 7: !MBadPixelsPix::IsCalibrationResultOK();327 325 // 8: MBadPixelsPix::IsUncalibrated(MBadPixelsPix::kHiGainNotFitted) 328 326 // 9: MBadPixelsPix::IsUncalibrated(MBadPixelsPix::kLoGainNotFitted) … … 360 358 case 5: 361 359 return (*this)[idx].IsLoGainBad(); 362 case 6:363 return !(*this)[idx].IsCalibrationSignalOK();364 case 7:365 return !(*this)[idx].IsCalibrationResultOK();366 360 case 8: 367 361 return (*this)[idx].IsUncalibrated(MBadPixelsPix::kHiGainNotFitted); -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.cc
r3601 r3839 55 55 // BIT(12): kMeanTimeInFirstBin : The signal has its mean maximum in the first used FADC slice - signal extractor bad 56 56 // 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 58 60 // 59 61 // These bits can be called with the enum MBadPixelsPix::UncalibratedType_t in combination -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.h
r3632 r3839 28 28 // All types are initialized to normal behaviour 29 29 enum UncalibratedType_t { 30 kHiGainNot Calibrated= BIT(1),31 kLoGainNot Calibrated= BIT(2),32 k HiGainNotFitted= BIT(3),33 k LoGainNotFitted = BIT(4),34 k RelTimeNotFitted= BIT(5),35 k HiGainOscillating= BIT(6),36 kLoGain Oscillating= BIT(7),37 k RelTimeOscillating = BIT(8),38 k LoGainSaturation = BIT(9),39 kCharge IsPedestal= BIT(10),40 kCharge ErrNotValid= BIT(11),41 k ChargeRelErrNotValid= BIT(12),42 k ChargeSigmaNotValid = BIT(13),43 k MeanTimeInFirstBin= BIT(14),44 k MeanTimeInLast2Bins = BIT(15),45 k DeviatingNumPhes= 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) 46 46 }; 47 47 … … 66 66 Bool_t IsLoGainBad() const { return IsUnsuitable (kUnsuitableRun ) 67 67 || IsUncalibrated(kLoGainSaturation ) 68 || IsUncalibrated(k LoGainNotCalibrated)68 || IsUncalibrated(kConversionHiLoNotValid) 69 69 || IsUncalibrated(kLoGainOscillating ) ; } 70 70 Bool_t IsHiGainBad() const { return IsUnsuitable (kUnsuitableRun ) 71 || IsUncalibrated(kHiGainNotCalibrated)72 71 || 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() ; }85 72 86 73 void Merge(const MBadPixelsPix &pix); -
trunk/MagicSoft/Mars/mcalib/MCalibrate.cc
r3792 r3839 293 293 { 294 294 MBadPixelsPix &bad = (*fBadPixels)[pixidx]; 295 if (!bad.Is CalibrationResultOK())295 if (!bad.IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) 296 296 continue; 297 297 } -
trunk/MagicSoft/Mars/mcalib/MCalibrateRelTimes.cc
r3757 r3839 164 164 { 165 165 MBadPixelsPix &bad = (*fBadPixels)[pixidx]; 166 if (!bad.Is CalibrationResultOK())166 if (!bad.IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) 167 167 continue; 168 168 }
Note:
See TracChangeset
for help on using the changeset viewer.