Changeset 7386 for trunk/MagicSoft/Mars/mhflux/MHAlpha.cc
- Timestamp:
- 10/11/05 14:34:04 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MHAlpha.cc
r7178 r7386 163 163 { 164 164 fHEnergy.SetBinContent(i, fit.GetEventsExcess()); 165 if (fit.GetSignificance ()>1)166 fHEnergy.SetBinError(i, fit.GetEventsExcess()/fit.GetSignificance ());165 if (fit.GetSignificanceExc()>1) 166 fHEnergy.SetBinError(i, fit.GetEventsExcess()/fit.GetSignificanceExc()); 167 167 else 168 168 fHEnergy.SetBinError(i, fit.GetEventsExcess()); 169 169 170 if (fit.GetSignificance ()>1)170 if (fit.GetSignificanceExc()>1) 171 171 { 172 mean += fit.GetSignificance ();172 mean += fit.GetSignificanceExc()*fit.GetSignificanceExc(); 173 173 num++; 174 174 } 175 175 } 176 176 } 177 return mean/num;177 return TMath::Sqrt(mean)/num; 178 178 } 179 179 … … 192 192 { 193 193 fHTheta.SetBinContent(i, fit.GetEventsExcess()); 194 if (fit.GetSignificance ()>1)195 fHTheta.SetBinError(i, fit.GetEventsExcess()/fit.GetSignificance ());194 if (fit.GetSignificanceExc()>1) 195 fHTheta.SetBinError(i, fit.GetEventsExcess()/fit.GetSignificanceExc()); 196 196 else 197 197 fHTheta.SetBinError(i, fit.GetEventsExcess()); … … 430 430 // 431 431 fHTime.SetBinContent(n+1, fit.GetEventsExcess()); 432 if (fit.GetSignificance ()>1)433 fHTime.SetBinError(n+1, fit.GetEventsExcess()/fit.GetSignificance ());432 if (fit.GetSignificanceExc()>1) 433 fHTime.SetBinError(n+1, fit.GetEventsExcess()/fit.GetSignificanceExc()); 434 434 else 435 435 fHTime.SetBinError(n+1, fit.GetEventsExcess()); … … 810 810 if (hof ? fit.Fit(*hon, *hof, alpha) : fit.Fit(*hon)) 811 811 { 812 *fLog << dbg << "Bin " << i << ": sigma =" << fit.GetSignificance() << " omega=" << fit.GetGausSigma() << " events=" << fit.GetEventsExcess() << " scale=" << fit.GetScaleFactor() << endl;812 *fLog << dbg << "Bin " << i << ": sigmaexc=" << fit.GetSignificanceExc() << " omega=" << fit.GetGausSigma() << " events=" << fit.GetEventsExcess() << " scale=" << fit.GetScaleFactor() << endl; 813 813 fit.PaintResult(); 814 814 }
Note:
See TracChangeset
for help on using the changeset viewer.