Changeset 8022


Ignore:
Timestamp:
10/08/06 14:26:04 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8020 r8022  
    3838     - changed some protected data members of the base class
    3939       into private data members
     40
     41   * mhflux/MAlphaFitter.cc, mhflux/MHEnergyEst.cc, mhist/MHCamera.cc,
     42     mhist/MHHadronness.cc, mhvstime/MHPixVsTime.cc,
     43     mhvstime/MHSectorVsTime.cc, mranforest/MRanForest.cc:
     44     - replaced IsNaN by !IsFinite (which includes IsNaN)
    4045
    4146
  • trunk/MagicSoft/Mars/mhist/MHCamera.cc

    r8021 r8022  
    16431643Int_t MHCamera::GetColor(Float_t val, Float_t min, Float_t max, Bool_t islog)
    16441644{
    1645     if (!TMath::Finite(val)) // FIXME: gLog!
    1646         return maxcolidx/2;
    1647 
    16481645    //
    16491646    //   first treat the over- and under-flows
    16501647    //
    16511648    const Int_t maxcolidx = kItemsLegend-1;
     1649
     1650    if (!TMath::Finite(val)) // FIXME: gLog!
     1651        return maxcolidx/2;
    16521652
    16531653    if (val >= max)
  • trunk/MagicSoft/Mars/mhist/MHHadronness.cc

    r7653 r8022  
    211211    const Double_t h = TMath::Min(TMath::Max(had.GetVal(), 0.), 1.);
    212212
    213     if (TMath::IsNaN(h))
     213    if (!TMath::Finite(h))
    214214        return kCONTINUE;
    215215
  • trunk/MagicSoft/Mars/mhvstime/MHPixVsTime.cc

    r7971 r8022  
    180180    Double_t rms = 0;
    181181    evt->GetPixelContent(val, fIndex, *fCam, fType);
    182     if (TMath::IsNaN(val))
     182    if (!TMath::Finite(val))
    183183        return kCONTINUE;
    184184
     
    194194    {
    195195        evt->GetPixelContent(rms, fIndex, *fCam, fTypeErr);
    196         if (TMath::IsNaN(rms))
     196        if (!TMath::Finite(rms))
    197197            return kCONTINUE;
    198198    }
  • trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.cc

    r7971 r8022  
    228228    const Double_t val0 = fHCamera.GetMeanSectors(fSectors, fAreaIndex);
    229229
    230     if (TMath::IsNaN(val0))
     230    if (!TMath::Finite(val0))
    231231        return kTRUE;
    232232
     
    236236    {
    237237        const Double_t rms0 = fHCamera.GetRmsSectors(fSectors, fAreaIndex);
    238         if (TMath::IsNaN(rms0))
     238        if (!TMath::Finite(rms0))
    239239            return kTRUE;
    240240        ((TGraphErrors*)fGraph)->SetPointError(fGraph->GetN()-1, 0, rms0);
  • trunk/MagicSoft/Mars/mranforest/MRanForest.cc

    r7749 r8022  
    574574            //isort[n]=n;
    575575
    576             if(TMath::IsNaN(v[n]))
     576            if (!TMath::Finite(v[n]))
    577577            {
    578578                *fLog << err <<"Event no. "<<n<<", matrix column no. "<<mvar;
    579                 *fLog << err <<" has the value NaN."<<endl;
     579                *fLog << err <<" has a non finite value (eg. NaN)."<<endl;
    580580                return kFALSE;
    581581            }
Note: See TracChangeset for help on using the changeset viewer.