Ignore:
Timestamp:
10/07/06 15:15:18 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhcalib/MHGausEvents.cc

    r7188 r8013  
    754754  fSigmaErr = fFGausFit->GetParError(2);
    755755  fProb     = fFGausFit->GetProb();
     756
    756757  //
    757758  // 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)
    767769      || fFGausFit->GetNDF() < fNDFLimit
    768770      || fProb < fProbLimit )
    769771    return kFALSE;
    770  
     772
    771773  SetGausFitOK(kTRUE);
    772774  return kTRUE;
Note: See TracChangeset for help on using the changeset viewer.