Changeset 7386 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 10/11/05 14:34:04 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mhflux
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc
r7384 r7386 34 34 // container in the parlisrt 35 35 // 36 // PRELIMINARY! 36 // Version 2: 37 // ---------- 38 // +Double_t fSignificanceExc; // significance of excess 39 // 37 40 // 38 41 ////////////////////////////////////////////////////////////////////////////// -
trunk/MagicSoft/Mars/mhflux/MAlphaFitter.h
r7384 r7386 220 220 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE); 221 221 222 ClassDef(MAlphaFitter, 1)222 ClassDef(MAlphaFitter, 2) 223 223 }; 224 224 -
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.