Changeset 3273
- Timestamp:
- 02/24/04 15:40:29 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3272 r3273 5 5 -*-*- END OF LINE -*-*- 6 6 7 8 2004/02/24: Markus Gaug 9 10 * mcalib/MCalibrationChargePix.cc 11 - discovered an error in the calculation of phe's in 12 CalcFFactorMethod(). The average QE was applied twice. 13 This error has been introduced on 13/02/04 14 7 15 8 16 2004/02/23: Markus Gaug -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.cc
r3264 r3273 732 732 733 733 // 734 // Calculate the number of photons from the F-Factor method 735 // FIXME: This is a preliminary solution, the qe shall be 736 // calibrated itself! 737 // 738 fPheFFactorMethod /= fAverageQE; 739 734 // Calculate the Error of Nphe 735 // 740 736 const Float_t pheFFactorRelErrSquare = ffactorsquareRelErrSquare 741 + chargeSquareRelErrSquare 742 + rsigmaSquareRelErrSquare 743 + avQERelErrSquare; 744 737 + chargeSquareRelErrSquare 738 + rsigmaSquareRelErrSquare; 745 739 fPheFFactorMethodErr = TMath::Sqrt(pheFFactorRelErrSquare) * fPheFFactorMethod; 746 747 fMeanConversionFFactorMethod = fPheFFactorMethod / GetMeanCharge() ; 748 fConversionFFactorMethodErr = ( pheFFactorRelErrSquare + chargeRelErrSquare ) 749 * fMeanConversionFFactorMethod * fMeanConversionFFactorMethod; 750 751 const Float_t convrelerror = fConversionFFactorMethodErr 752 / fMeanConversionFFactorMethod; 753 754 if ( (fMeanConversionFFactorMethod > 0.) && (convrelerror < fConvFFactorRelErrLimit)) 755 SETBIT(fFlags,kFFactorMethodValid); 756 757 fSigmaConversionFFactorMethod = GetTotalFFactorFFactorMethod()*TMath::Sqrt(fMeanConversionFFactorMethod); 758 759 // 760 // Calculate the Total F-Factor of the camera ( in photons ) 761 // 762 if (fPheFFactorMethod > 0) 763 { 764 fTotalFFactorFFactorMethod = (fRSigmaCharge/GetMeanCharge())*TMath::Sqrt(fPheFFactorMethod); 765 fTotalFFactorFFactorMethod *= avQEFFactor; 766 } 740 741 // 742 // Calculate the conversion factor between PHOTONS and FADC counts 743 // 744 fMeanConversionFFactorMethod = fPheFFactorMethod / GetMeanCharge() / fAverageQE; 745 746 if (fMeanConversionFFactorMethod < 0.) 747 return kFALSE; 748 749 // 750 // Calculate the error of the mean conversion factor between PHOTONS and FADC counts 751 // 752 const Float_t convRelErrSquare = ( pheFFactorRelErrSquare + chargeRelErrSquare + avQERelErrSquare); 753 754 if (convRelErrSquare < 0.) 755 return kFALSE; 756 757 const Float_t convRelErr = TMath::Sqrt(convRelErrSquare); 758 fConversionFFactorMethodErr = convRelErr * fMeanConversionFFactorMethod; 759 760 if (convRelErr < fConvFFactorRelErrLimit) 761 SetFFactorMethodValid(); 762 763 // 764 // Calculate the Total F-Factor of the camera (in photons) 765 // 766 fTotalFFactorFFactorMethod = (fRSigmaCharge/GetMeanCharge())*TMath::Sqrt(fPheFFactorMethod); 767 fTotalFFactorFFactorMethod *= avQEFFactor; 767 768 768 769 // … … 776 777 + pheFFactorRelErrSquare 777 778 + avQEFFactorRelErrSquare ); 778 779 779 fTotalFFactorErrFFactorMethod *= fTotalFFactorFFactorMethod; 780 780 781 SetFFactorMethodValid(); 781 // 782 // Calculate the sigma of the conversion from FADC counts to photons 783 // 784 fSigmaConversionFFactorMethod = GetTotalFFactorFFactorMethod()*TMath::Sqrt(fMeanConversionFFactorMethod); 785 782 786 return kTRUE; 783 787 }
Note:
See TracChangeset
for help on using the changeset viewer.