Changeset 8022 for trunk/MagicSoft
- Timestamp:
- 10/08/06 14:26:04 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8020 r8022 38 38 - changed some protected data members of the base class 39 39 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) 40 45 41 46 -
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r8021 r8022 1643 1643 Int_t MHCamera::GetColor(Float_t val, Float_t min, Float_t max, Bool_t islog) 1644 1644 { 1645 if (!TMath::Finite(val)) // FIXME: gLog!1646 return maxcolidx/2;1647 1648 1645 // 1649 1646 // first treat the over- and under-flows 1650 1647 // 1651 1648 const Int_t maxcolidx = kItemsLegend-1; 1649 1650 if (!TMath::Finite(val)) // FIXME: gLog! 1651 return maxcolidx/2; 1652 1652 1653 1653 if (val >= max) -
trunk/MagicSoft/Mars/mhist/MHHadronness.cc
r7653 r8022 211 211 const Double_t h = TMath::Min(TMath::Max(had.GetVal(), 0.), 1.); 212 212 213 if ( TMath::IsNaN(h))213 if (!TMath::Finite(h)) 214 214 return kCONTINUE; 215 215 -
trunk/MagicSoft/Mars/mhvstime/MHPixVsTime.cc
r7971 r8022 180 180 Double_t rms = 0; 181 181 evt->GetPixelContent(val, fIndex, *fCam, fType); 182 if ( TMath::IsNaN(val))182 if (!TMath::Finite(val)) 183 183 return kCONTINUE; 184 184 … … 194 194 { 195 195 evt->GetPixelContent(rms, fIndex, *fCam, fTypeErr); 196 if ( TMath::IsNaN(rms))196 if (!TMath::Finite(rms)) 197 197 return kCONTINUE; 198 198 } -
trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.cc
r7971 r8022 228 228 const Double_t val0 = fHCamera.GetMeanSectors(fSectors, fAreaIndex); 229 229 230 if ( TMath::IsNaN(val0))230 if (!TMath::Finite(val0)) 231 231 return kTRUE; 232 232 … … 236 236 { 237 237 const Double_t rms0 = fHCamera.GetRmsSectors(fSectors, fAreaIndex); 238 if ( TMath::IsNaN(rms0))238 if (!TMath::Finite(rms0)) 239 239 return kTRUE; 240 240 ((TGraphErrors*)fGraph)->SetPointError(fGraph->GetN()-1, 0, rms0); -
trunk/MagicSoft/Mars/mranforest/MRanForest.cc
r7749 r8022 574 574 //isort[n]=n; 575 575 576 if (TMath::IsNaN(v[n]))576 if (!TMath::Finite(v[n])) 577 577 { 578 578 *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; 580 580 return kFALSE; 581 581 }
Note:
See TracChangeset
for help on using the changeset viewer.