Changeset 8021 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 10/08/06 14:22:25 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mhflux
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc
r7779 r8021 170 170 fSignificanceExc = MMath::SignificanceLiMaExc(fEventsSignal, fEventsBackground); 171 171 172 if (TMath::IsNaN(fSignificance)) 172 // !Finitite includes IsNaN 173 if (!TMath::Finite(fSignificance)) 173 174 fSignificance=0; 174 175 … … 373 374 fSignificanceExc = MMath::SignificanceLiMaExc(fEventsSignal, fEventsBackground/alpha, alpha); 374 375 375 if (TMath::IsNaN(fSignificance)) 376 // !Finitite includes IsNaN 377 if (!TMath::Finite(fSignificance)) 376 378 fSignificance=0; 377 379 if (fEventsExcess<0) -
trunk/MagicSoft/Mars/mhflux/MHEnergyEst.cc
r7899 r8021 212 212 { 213 213 const Double_t res = TMath::Sqrt(fChisq-fBias*fBias); 214 if ( TMath::IsNaN(res))214 if (!TMath::Finite(res)) 215 215 { 216 *fLog << all << "MHEnergyEst::Print: ERROR - Resolution is NaN (not a number)." << endl;216 *fLog << all << "MHEnergyEst::Print: ERROR - Resolution is not finite (eg. NaN)." << endl; 217 217 return; 218 218 }
Note:
See TracChangeset
for help on using the changeset viewer.