Changeset 6905 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 04/01/05 14:55:54 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MHAlpha.cc
r6890 r6905 197 197 if (fit.FitEnergy(fHAlpha, fOffData, i)) 198 198 { 199 fHEnergy.SetBinContent(i, fit.GetEventsExcess()); 200 fHEnergy.SetBinError(i, fit.GetEventsExcess()*0.2); 199 if (fit.GetSignificance()>1) 200 { 201 fHEnergy.SetBinContent(i, fit.GetEventsExcess()); 202 fHEnergy.SetBinError(i, fit.GetEventsExcess()/fit.GetSignificance()); 203 } 201 204 } 202 205 } … … 216 219 if (fit.FitTheta(fHAlpha, fOffData, i)) 217 220 { 218 fHTheta.SetBinContent(i, fit.GetEventsExcess()); 219 fHTheta.SetBinError(i, fit.GetEventsExcess()*0.2); 221 if (fit.GetSignificance()>1) 222 { 223 fHTheta.SetBinContent(i, fit.GetEventsExcess()); 224 fHTheta.SetBinError(i, fit.GetEventsExcess()/fit.GetSignificance()); 225 } 220 226 } 221 227 } … … 425 431 // 426 432 fHTime.SetBinContent(n+1, fit.GetEventsExcess()); 427 fHTime.SetBinError(n+1, fit.GetEventsExcess() *0.1);433 fHTime.SetBinError(n+1, fit.GetEventsExcess()/fit.GetSignificance()); 428 434 429 435 *fLog << all << *fTimeEffOn << ": " << fit.GetEventsExcess() << endl;
Note:
See TracChangeset
for help on using the changeset viewer.