- Timestamp:
- 10/11/05 14:34:04 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7385 r7386 19 19 -*-*- END OF LINE -*-*- 20 20 21 2005/09/29 Daniela Dorner 21 2005/10/11 Thomas Bretz 22 23 * mbase/MMath.cc: 24 - fixed a typo in SignificanceLiMaExc 25 26 * mhflux/MAlphaFitter.[h,cc]: 27 - added a comment 28 - increased ClassDef 29 30 * mhflux/MHAlpha.cc: 31 - correctly use SignificanceExc for bins instead of Significance 32 33 34 35 2005/10/11 Daniela Dorner 22 36 23 37 * datacenter/macros/setupdb.C: -
trunk/MagicSoft/Mars/NEWS
r7380 r7386 8 8 and where to search for the image data 9 9 --ind=/magic/data/star 10 11 - ganymed/sponde: Calculation of the error of single size-/energy- 12 bins now uses Li/Ma (5) instead of LiMa (17) 10 13 11 14 -
trunk/MagicSoft/Mars/mbase/MMath.cc
r7384 r7386 139 139 { 140 140 Double_t Ns = s - alpha*b; 141 Double_t sN = s -alpha*alpha*b;141 Double_t sN = s + alpha*alpha*b; 142 142 143 143 return Ns<0 || sN<0 ? 0 : Ns/TMath::Sqrt(sN); -
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.