Changeset 7005 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 05/10/05 12:13:12 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc
r6965 r7005 292 292 void MAlphaFitter::PaintResult(Float_t x, Float_t y, Float_t size) const 293 293 { 294 TLatex text(x, y, Form("\\sigma_{Li/Ma}=%.1f \\omega=%.1f\\circ E=%d (\\alpha<%.1f\\circ) (\\chi_{b}^{2}/ndf=%.1f \\chi_{s}^{2}/ndf=%.1f c_{0}=%.1f)", 295 fSignificance, GetGausSigma(), 296 (int)fEventsExcess, fIntegralMax, 297 fChiSqBg, fChiSqSignal, fCoefficients[3])); 294 const Double_t w = GetGausSigma(); 295 const Int_t l = w<=0 ? 0 : (Int_t)TMath::Ceil(-TMath::Log10(w)); 296 const TString fmt = Form("\\sigma_{Li/Ma}=%%.1f \\omega=%%.%df\\circ E=%%d (\\alpha<%%.1f\\circ) (\\chi_{b}^{2}/ndf=%%.1f \\chi_{s}^{2}/ndf=%%.1f c_{0}=%%.1f)", 297 l<1?1:l); 298 299 TLatex text(x, y, Form(fmt.Data(), fSignificance, w, (int)fEventsExcess, 300 fIntegralMax, fChiSqBg, fChiSqSignal, 301 fCoefficients[3])); 298 302 299 303 text.SetBit(TLatex::kTextNDC);
Note:
See TracChangeset
for help on using the changeset viewer.