Changeset 8013 for trunk/MagicSoft/Mars/mhcalib
- Timestamp:
- 10/07/06 15:15:18 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHGausEvents.cc
r7188 r8013 754 754 fSigmaErr = fFGausFit->GetParError(2); 755 755 fProb = fFGausFit->GetProb(); 756 756 757 // 757 758 // The fit result is accepted under condition: 758 // 1) The results are not nan's 759 // 2) The NDF is not smaller than fNDFLimit (default: fgNDFLimit) 760 // 3) The Probability is greater than fProbLimit (default: fgProbLimit) 761 // 762 if ( TMath::IsNaN(fMean) 763 || TMath::IsNaN(fMeanErr) 764 || TMath::IsNaN(fProb) 765 || TMath::IsNaN(fSigma) 766 || TMath::IsNaN(fSigmaErr) 759 // 1) The results are not NaN's (not a number) 760 // 2) The results are all finite 761 // 3) The NDF is not smaller than fNDFLimit (default: fgNDFLimit) 762 // 4) The Probability is greater than fProbLimit (default: fgProbLimit) 763 // 764 if ( TMath::IsNaN(fMean) || !TMath::Finite(fMean) 765 || TMath::IsNaN(fMeanErr) || !TMath::Finite(fMeanErr) 766 || TMath::IsNaN(fProb) || !TMath::Finite(fProb) 767 || TMath::IsNaN(fSigma) || !TMath::Finite(fSigma) 768 || TMath::IsNaN(fSigmaErr) || !TMath::Finite(fSigmaErr) 767 769 || fFGausFit->GetNDF() < fNDFLimit 768 770 || fProb < fProbLimit ) 769 771 return kFALSE; 770 772 771 773 SetGausFitOK(kTRUE); 772 774 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.