- Timestamp:
- 03/07/04 16:29:39 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.h
r3420 r3424 28 28 kHiGainFitted = BIT(3), 29 29 kLoGainFitted = BIT(4), 30 kCalcCharge NotPedestal= BIT(5),30 kCalcChargePedestal = BIT(5), 31 31 kCalcChargeErrValid = BIT(6), 32 32 kCalcChargeRelErrValid = BIT(7), … … 103 103 void SetNoCalcChargeErrValid( CalibrationType_t typ=kCalcChargeErrValid ) { fInfo[1] &= ~typ; } 104 104 105 void SetCalcCharge NotPedestal ( CalibrationType_t typ=kCalcChargeNotPedestal ) { fInfo[1] |= typ; }106 void SetNoCalcCharge NotPedestal( CalibrationType_t typ=kCalcChargeNotPedestal ) { fInfo[1] &= ~typ; }105 void SetCalcChargePedestal ( CalibrationType_t typ=kCalcChargePedestal ) { fInfo[1] |= typ; } 106 void SetNoCalcChargePedestal( CalibrationType_t typ=kCalcChargePedestal ) { fInfo[1] &= ~typ; } 107 107 108 108 void SetLoGainFitted ( CalibrationType_t typ=kLoGainFitted ) { fInfo[1] |= typ; } … … 121 121 Bool_t IsOK() const { return fInfo[0]==0; } 122 122 Bool_t IsBad() const { return fInfo[0]!=0; } 123 123 124 Bool_t IsLoGainBad() const { return (fInfo[1]&kLoGainSaturation 124 125 || !(fInfo[1]&kConversionHiLoValid) 125 126 || fInfo[1]&kLoGainOscillating ); } 126 127 Bool_t IsHiGainBad() const { return ( fInfo[1]&kHiGainSaturation 128 && !(fInfo[1]&kConversionHiLoValid) ) 129 || fInfo[1]&kHiGainOscillating ; } 130 Bool_t IsCalibrationSignalOK() const { return !( fInfo[1]&kCalcChargePedestal 131 || !(fInfo[1]&kCalcChargeErrValid) 132 || !(fInfo[1]&kCalcChargeRelErrValid) 133 || !(fInfo[1]&kCalcChargeSigmaValid) 134 || fInfo[1]&kMeanTimeInFirstBin 135 || fInfo[1]&kMeanTimeInLastBin ) ; } 136 Bool_t IsCalibrationFitOK() const { return ( fInfo[1]&kHiGainSaturation && kHiGainFitted ) 137 || ( fInfo[1]&kLoGainSaturation && kLoGainFitted ) ; } 138 Bool_t IsCalibrationOscillating() const { return ( fInfo[1]&kHiGainSaturation && kHiGainOscillating ) 139 || ( fInfo[1]&kLoGainSaturation && kLoGainOscillating ) ; } 140 Bool_t IsCalibrationResultOK() const { return ( IsCalibrationSignalOK() 141 && !(IsCalibrationOscillating()) 142 && IsCalibrationFitOK() 143 && (!fInfo[1]&kHiGainSaturation && !(IsHiGainBad()) 144 || fInfo[1]&kHiGainSaturation && !(IsLoGainBad())) );} 145 Bool_t IsCalibrationFFactorMethodOK() const { return ( IsCalibrationResultOK() 146 && (fInfo[1]&kFFactorMethodValid)) ; } 147 Bool_t IsCalibrationBlindPixelMethodOK() const { return ( IsCalibrationResultOK() 148 && (fInfo[1]&kBlindPixelMethodValid)) ; } 149 Bool_t IsCalibrationPINDiodeMethodOK() const { return ( IsCalibrationResultOK() 150 && (fInfo[1]&kPINDiodeMethodValid)) ; } 151 Bool_t IsCalibrationCombinedMethodOK() const { return ( IsCalibrationResultOK() 152 && (fInfo[1]&kCombinedMethodValid)) ; } 153 127 154 void Merge(const MBadPixelsPix &pix); 128 155
Note:
See TracChangeset
for help on using the changeset viewer.