Changeset 6906 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 04/04/05 10:11:18 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MHAlpha.cc
r6905 r6906 197 197 if (fit.FitEnergy(fHAlpha, fOffData, i)) 198 198 { 199 fHEnergy.SetBinContent(i, fit.GetEventsExcess()); 199 200 if (fit.GetSignificance()>1) 200 {201 fHEnergy.SetBinContent(i, fit.GetEventsExcess());202 201 fHEnergy.SetBinError(i, fit.GetEventsExcess()/fit.GetSignificance()); 203 } 202 else 203 fHEnergy.SetBinError(i, fit.GetEventsExcess()); 204 204 } 205 205 } … … 219 219 if (fit.FitTheta(fHAlpha, fOffData, i)) 220 220 { 221 fHTheta.SetBinContent(i, fit.GetEventsExcess()); 221 222 if (fit.GetSignificance()>1) 222 {223 fHTheta.SetBinContent(i, fit.GetEventsExcess());224 223 fHTheta.SetBinError(i, fit.GetEventsExcess()/fit.GetSignificance()); 225 } 224 else 225 fHTheta.SetBinError(i, fit.GetEventsExcess()); 226 226 } 227 227 } … … 431 431 // 432 432 fHTime.SetBinContent(n+1, fit.GetEventsExcess()); 433 fHTime.SetBinError(n+1, fit.GetEventsExcess()/fit.GetSignificance()); 433 if (fit.GetSignificance()>1) 434 fHTime.SetBinError(n+1, fit.GetEventsExcess()/fit.GetSignificance()); 435 else 436 fHTime.SetBinError(n+1, fit.GetEventsExcess()); 434 437 435 438 *fLog << all << *fTimeEffOn << ": " << fit.GetEventsExcess() << endl;
Note:
See TracChangeset
for help on using the changeset viewer.