Changeset 8013


Ignore:
Timestamp:
10/07/06 15:15:18 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8011 r8013  
    5252   * mbase/BaseLinkDef.h:
    5353     - added namespace MAGIC.cc
     54
     55   * mhcalib/MHGausEvent.cc:
     56     - disallow also non finite results
    5457
    5558
  • 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;
  • trunk/MagicSoft/Mars/sponde.cc

    r7432 r8013  
    3030    gLog << "                  Sponde - MARS V" << MARSVER             << endl;
    3131    gLog << "               MARS -- SPectrum ON DEmand"                << endl;
    32     gLog << "   Compiled with ROOT v" << ROOTVER << " on <" << __DATE__ << ">" << endl;
     32    gLog << "   Compiled with ROOT v" << ROOT_RELEASE << " on <" << __DATE__ << ">" << endl;
    3333    gLog << "========================================================" << endl;
    3434    gLog << endl;
     
    8888int main(int argc, char **argv)
    8989{
     90    if (!MARS::CheckRootVer())
     91        return 0xff;
     92
    9093    //
    9194    // Evaluate arguments
Note: See TracChangeset for help on using the changeset viewer.