Changeset 3278 for trunk/MagicSoft/Mars
- Timestamp:
- 02/24/04 17:56:35 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3274 r3278 24 24 - discovered an error in the calculation of phe's in 25 25 CalcFFactorMethod(). The average QE was applied twice. 26 This error has been introduced on 13/02/04 26 This error had been introduced on 13/02/04 27 28 * mcalib/MCalibrate.cc 29 - test validity of every calibration method before retrieving 30 conversion factors 27 31 28 32 -
trunk/MagicSoft/Mars/mcalib/MCalibrate.cc
r3265 r3278 204 204 { 205 205 case kBlindPixel: 206 calibrationConversionFactor = pix.GetMeanConversionBlindPixelMethod(); 207 calibrationConversionFactorErr = pix.GetConversionBlindPixelMethodErr(); 206 if (pix.IsBlindPixelMethodValid()) 207 { 208 calibrationConversionFactor = pix.GetMeanConversionBlindPixelMethod(); 209 calibrationConversionFactorErr = pix.GetConversionBlindPixelMethodErr(); 210 } 208 211 break; 209 212 case kPinDiode: 210 calibrationConversionFactor = pix.GetMeanConversionPINDiodeMethod(); 211 calibrationConversionFactorErr = pix.GetConversionPINDiodeMethodErr(); 213 if (pix.IsPINDiodeMethodValid()) 214 { 215 calibrationConversionFactor = pix.GetMeanConversionPINDiodeMethod(); 216 calibrationConversionFactorErr = pix.GetConversionPINDiodeMethodErr(); 217 } 212 218 break; 213 219 case kFfactor: 214 calibrationConversionFactor = pix.GetMeanConversionFFactorMethod(); 215 calibrationConversionFactorErr = pix.GetConversionFFactorMethodErr(); 220 if (pix.IsFFactorMethodValid()) 221 { 222 calibrationConversionFactor = pix.GetMeanConversionFFactorMethod(); 223 calibrationConversionFactorErr = pix.GetConversionFFactorMethodErr(); 224 } 216 225 break; 217 226 case kCombined: 218 calibrationConversionFactor = pix.GetMeanConversionCombinedMethod(); 219 calibrationConversionFactorErr = pix.GetConversionCombinedMethodErr(); 220 break; 227 if (pix.IsCombinedMethodValid()) 228 { 229 calibrationConversionFactor = pix.GetMeanConversionCombinedMethod(); 230 calibrationConversionFactorErr = pix.GetConversionCombinedMethodErr(); 231 } 232 break; 221 233 case kDummy: 222 234 calibrationConversionFactor = 1.;
Note:
See TracChangeset
for help on using the changeset viewer.