Ignore:
Timestamp:
05/10/05 12:13:12 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc

    r6965 r7005  
    292292void MAlphaFitter::PaintResult(Float_t x, Float_t y, Float_t size) const
    293293{
    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]));
    298302
    299303    text.SetBit(TLatex::kTextNDC);
Note: See TracChangeset for help on using the changeset viewer.