Changeset 3443
- Timestamp:
- 03/09/04 11:49:37 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.h
r3435 r3443 107 107 Bool_t IsBad() const { return fInfo[0]!=0; } 108 108 109 Bool_t IsHiGainSaturation () const 110 { return !((fInfo[1] | ~kHiGainSaturation) == ~kHiGainSaturation ); } 111 Bool_t IsLoGainSaturation () const 112 { return !((fInfo[1] | ~kLoGainSaturation) == ~kLoGainSaturation ); } 113 Bool_t IsCombinedMethodNotValid () const 114 { return !((fInfo[1] | ~kCombinedMethodNotValid) == ~kCombinedMethodNotValid ); } 115 Bool_t IsPINDiodeMethodNotValid () const 116 { return !((fInfo[1] | ~kPINDiodeMethodNotValid) == ~kPINDiodeMethodNotValid ); } 117 Bool_t IsFFactorMethodNotValid () const 118 { return !((fInfo[1] | ~kFFactorMethodNotValid) == ~kFFactorMethodNotValid ); } 119 Bool_t IsBlindPixelMethodNotValid () const 120 { return !((fInfo[1] | ~kBlindPixelMethodNotValid) == ~kBlindPixelMethodNotValid ); } 121 Bool_t IsMeanTimeInLastBin () const 122 { return !((fInfo[1] | ~kMeanTimeInLastBin) == ~kMeanTimeInLastBin ); } 123 Bool_t IsMeanTimeInFirstBin () const 124 { return !((fInfo[1] | ~kMeanTimeInFirstBin) == ~kMeanTimeInFirstBin ); } 125 Bool_t IsLoGainOscillating () const 126 { return !((fInfo[1] | ~kLoGainOscillating) == ~kLoGainOscillating ); } 127 Bool_t IsHiGainOscillating () const 128 { return !((fInfo[1] | ~kHiGainOscillating) == ~kHiGainOscillating ); } 129 Bool_t IsConvHiLoNotValid () const 130 { return !((fInfo[1] | ~kConvHiLoNotValid) == ~kConvHiLoNotValid ); } 131 Bool_t IsChargeSigmaNotValid () const 132 { return !((fInfo[1] | ~kChargeSigmaNotValid) == ~kChargeSigmaNotValid ); } 133 Bool_t IsChargeRelErrNotValid () const 134 { return !((fInfo[1] | ~kChargeRelErrNotValid) == ~kChargeRelErrNotValid ); } 135 Bool_t IsChargeErrNotValid () const 136 { return !((fInfo[1] | ~kChargeErrNotValid) == ~kChargeErrNotValid ); } 137 Bool_t IsChargeIsPedestal () const 138 { return !((fInfo[1] | ~kChargeIsPedestal) == ~kChargeIsPedestal ); } 139 Bool_t IsLoGainNotFitted () const 140 { return !((fInfo[1] | ~kLoGainNotFitted) == ~kLoGainNotFitted ); } 141 Bool_t IsHiGainNotFitted () const 142 { return !((fInfo[1] | ~kHiGainNotFitted) == ~kHiGainNotFitted ); } 109 Bool_t IsHiGainSaturation () const { return fInfo[1] & kHiGainSaturation ; } 110 Bool_t IsLoGainSaturation () const { return fInfo[1] & kLoGainSaturation ; } 111 Bool_t IsCombinedMethodNotValid () const { return fInfo[1] & kCombinedMethodNotValid; } 112 Bool_t IsPINDiodeMethodNotValid () const { return fInfo[1] & kPINDiodeMethodNotValid; } 113 Bool_t IsFFactorMethodNotValid () const { return fInfo[1] & kFFactorMethodNotValid; } 114 Bool_t IsBlindPixelMethodNotValid () const { return fInfo[1] & kBlindPixelMethodNotValid; } 115 Bool_t IsMeanTimeInLastBin () const { return fInfo[1] & kMeanTimeInLastBin; } 116 Bool_t IsMeanTimeInFirstBin () const { return fInfo[1] & kMeanTimeInFirstBin; } 117 Bool_t IsLoGainOscillating () const { return fInfo[1] & kLoGainOscillating; } 118 Bool_t IsHiGainOscillating () const { return fInfo[1] & kHiGainOscillating; } 119 Bool_t IsConvHiLoNotValid () const { return fInfo[1] & kConvHiLoNotValid; } 120 Bool_t IsChargeSigmaNotValid () const { return fInfo[1] & kChargeSigmaNotValid; } 121 Bool_t IsChargeRelErrNotValid () const { return fInfo[1] & kChargeRelErrNotValid; } 122 Bool_t IsChargeErrNotValid () const { return fInfo[1] & kChargeErrNotValid; } 123 Bool_t IsChargeIsPedestal () const { return fInfo[1] & kChargeIsPedestal; } 124 Bool_t IsLoGainNotFitted () const { return fInfo[1] & kLoGainNotFitted; } 125 Bool_t IsHiGainNotFitted () const { return fInfo[1] & kHiGainNotFitted; } 143 126 144 Bool_t IsLoGainBad() const { return IsLoGainSaturation() 145 || IsConvHiLoNotValid() 146 || IsLoGainOscillating() ;} 147 Bool_t IsHiGainBad() const { return ( IsHiGainSaturation() && IsConvHiLoNotValid() 148 || IsHiGainOscillating() ); } 127 Bool_t IsLoGainBad() const { return IsLoGainSaturation() || IsConvHiLoNotValid() || IsLoGainOscillating() ;} 128 Bool_t IsHiGainBad() const { return (IsHiGainSaturation() && IsConvHiLoNotValid()) || IsHiGainOscillating(); } 129 149 130 Bool_t IsCalibrationSignalOK() const { return !( IsChargeIsPedestal() 150 131 || IsChargeErrNotValid() … … 153 134 || IsMeanTimeInFirstBin() 154 135 || IsMeanTimeInLastBin() ); } 155 Bool_t IsCalibrationFitOK() const { return !( (IsHiGainSaturation() && IsHiGainNotFitted())156 || ( IsLoGainSaturation() && IsLoGainNotFitted()) ); }136 Bool_t IsCalibrationFitOK() const { return !( (!IsHiGainSaturation() && IsHiGainNotFitted()) 137 || ( IsHiGainSaturation() && IsLoGainNotFitted()) ); } 157 138 Bool_t IsCalibrationOscillating() const { return ( !IsHiGainSaturation() && IsHiGainOscillating()) 158 || ( IsHiGainSaturation() && IsLoGainOscillating()) ; } 159 Bool_t IsCalibrationResultOK() const { return IsCalibrationSignalOK() 160 && !(IsCalibrationOscillating()) 161 && IsCalibrationFitOK() 162 && ( (!IsHiGainSaturation() && !IsHiGainBad()) 163 || (IsHiGainSaturation() && !IsLoGainBad()) ) ;} 164 Bool_t IsCalibrationFFactorMethodOK() const { return IsCalibrationResultOK() 165 && !IsFFactorMethodNotValid() ; } 166 Bool_t IsCalibrationBlindPixelMethodOK() const { return IsCalibrationResultOK() 167 && !IsBlindPixelMethodNotValid(); } 168 Bool_t IsCalibrationPINDiodeMethodOK() const { return IsCalibrationResultOK() 169 && !IsPINDiodeMethodNotValid() ; } 170 Bool_t IsCalibrationCombinedMethodOK() const { return IsCalibrationResultOK() 171 && !IsCombinedMethodNotValid(); } 139 || ( IsHiGainSaturation() && IsLoGainOscillating()) ; } 140 Bool_t IsCalibrationResultOK() const { return IsCalibrationSignalOK() 141 && !IsCalibrationOscillating() 142 && IsCalibrationFitOK() 143 && ( (!IsHiGainSaturation() && !IsHiGainBad()) 144 || (IsHiGainSaturation() && !IsLoGainBad()) ) ;} 172 145 173 146 void Merge(const MBadPixelsPix &pix);
Note:
See TracChangeset
for help on using the changeset viewer.