Changeset 3685
- Timestamp:
- 04/08/04 20:25:12 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationQEPix.cc
r3680 r3685 660 660 // ------------------------------------------------------------------------------ 661 661 // 662 // Get the error on the averaged Quantum efficiency folded over the cascade spectrum, 663 // obtained with the blind pixel method and averaged over the results from the 664 // different colours. 665 // 666 Float_t MCalibrationQEPix::GetQECascadesBlindPixelErr( const Float_t zenith ) const 667 { 668 const Float_t var = GetQECascadesBlindPixel(zenith); 669 670 if (var < 0.) 671 return -1.; 672 673 return TMath::Sqrt(var); 674 } 675 676 // ------------------------------------------------------------------------------ 677 // 662 678 // Get the averaged Quantum efficiency folded over the cascade spectrum, obtained 663 679 // with the combination of the three methods and averaged over the results … … 671 687 // ------------------------------------------------------------------------------ 672 688 // 689 // Get the error on the averaged Quantum efficiency folded over the cascade spectrum, 690 // obtained with the combined method and averaged over the results from the 691 // different colours. 692 // 693 Float_t MCalibrationQEPix::GetQECascadesCombinedErr( const Float_t zenith ) const 694 { 695 const Float_t var = GetQECascadesCombined(zenith); 696 697 if (var < 0.) 698 return -1.; 699 700 return TMath::Sqrt(var); 701 } 702 703 // ------------------------------------------------------------------------------ 704 // 673 705 // Get the variance of the averaged Quantum efficiency folded over the cascade spectrum, 674 706 // obtained with the combination of the three methods and averaged over the results from the … … 693 725 // ------------------------------------------------------------------------------ 694 726 // 727 // Get the error on the averaged Quantum efficiency folded over the cascade spectrum, 728 // obtained with the F-Factor method and averaged over the results from the 729 // different colours. 730 // 731 Float_t MCalibrationQEPix::GetQECascadesFFactorErr( const Float_t zenith ) const 732 { 733 const Float_t var = GetQECascadesFFactor(zenith); 734 735 if (var < 0.) 736 return -1.; 737 738 return TMath::Sqrt(var); 739 } 740 741 // ------------------------------------------------------------------------------ 742 // 695 743 // Get the variance of the averaged Quantum efficiency folded over the cascade spectrum, 696 744 // obtained with the F-Factor method and averaged over the results from the … … 711 759 { 712 760 return fAvNormPINDiode * GetAverageQE ( zenith ); 761 } 762 763 // ------------------------------------------------------------------------------ 764 // 765 // Get the error on the averaged Quantum efficiency folded over the cascade spectrum, 766 // obtained with the PIN Diode method and averaged over the results from the 767 // different colours. 768 // 769 Float_t MCalibrationQEPix::GetQECascadesPINDiodeErr( const Float_t zenith ) const 770 { 771 const Float_t var = GetQECascadesPINDiode(zenith); 772 773 if (var < 0.) 774 return -1.; 775 776 return TMath::Sqrt(var); 713 777 } 714 778 … … 1042 1106 return kFALSE; 1043 1107 1044 weightedav /= sumweights; 1045 1046 fAvNormFFactor = gkDefaultAverageQE * weightedav; 1047 fAvNormFFactorVar = GetAverageQERelVar() + (sumweights / weightedav / weightedav ); 1048 fAvNormFFactorVar *= fAvNormFFactor * fAvNormFFactor; 1108 fAvNormFFactor = weightedav / sumweights; 1109 fAvNormFFactorVar = 1./ sumweights ; 1049 1110 1050 1111 return kTRUE; -
trunk/MagicSoft/Mars/mcalib/MCalibrationQEPix.h
r3678 r3685 86 86 Float_t GetQEBlindPixelRelVar ( const MCalibrationCam::PulserColor_t col ) const; 87 87 Float_t GetQECascadesBlindPixel ( const Float_t zenith=0.) const; 88 Float_t GetQECascadesBlindPixelErr ( const Float_t zenith=0.) const; 88 89 Float_t GetQECascadesBlindPixelVar ( const Float_t zenith=0.) const; 89 90 Float_t GetQECascadesCombined ( const Float_t zenith=0.) const; 90 Float_t GetQECascadesCombinedVar ( const Float_t zenith=0.) const; 91 Float_t GetQECascadesCombinedErr ( const Float_t zenith=0.) const; 92 Float_t GetQECascadesCombinedVar ( const Float_t zenith=0.) const; 91 93 Float_t GetQECascadesFFactor ( const Float_t zenith=0.) const; 92 Float_t GetQECascadesFFactorVar ( const Float_t zenith=0 ) const; 94 Float_t GetQECascadesFFactorErr ( const Float_t zenith=0 ) const; 95 Float_t GetQECascadesFFactorVar ( const Float_t zenith=0 ) const; 93 96 Float_t GetQECascadesPINDiode ( const Float_t zenith=0.) const; 94 Float_t GetQECascadesPINDiodeVar ( const Float_t zenith=0.) const; 97 Float_t GetQECascadesPINDiodeErr ( const Float_t zenith=0.) const; 98 Float_t GetQECascadesPINDiodeVar ( const Float_t zenith=0.) const; 95 99 Float_t GetQECombined ( const MCalibrationCam::PulserColor_t col ) const; 96 100 Float_t GetQECombinedErr ( const MCalibrationCam::PulserColor_t col ) const;
Note:
See TracChangeset
for help on using the changeset viewer.