Ignore:
Timestamp:
05/19/05 15:38:38 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7005 r7064  
    293293{
    294294    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);
     295    const Double_t m  = fIntegralMax;
     296
     297    const Int_t    l1 = w<=0 ? 0 : (Int_t)TMath::Ceil(-TMath::Log10(w));
     298    const Int_t    l2 = m<=0 ? 0 : (Int_t)TMath::Ceil(-TMath::Log10(m));
     299    const TString fmt = Form("\\sigma_{Li/Ma}=%%.1f  \\omega=%%.%df\\circ  E=%%d  B=%%d  (x<%%.%df)  (\\chi_{b}^{2}/ndf=%%.1f  \\chi_{s}^{2}/ndf=%%.1f  c_{0}=%%.1f)",
     300                             l1<1?1:l1+1, l2<1?1:l2+1);
    298301
    299302    TLatex text(x, y, Form(fmt.Data(), fSignificance, w, (int)fEventsExcess,
    300                            fIntegralMax, fChiSqBg, fChiSqSignal,
     303                           fEventsBackground, m, fChiSqBg, fChiSqSignal,
    301304                           fCoefficients[3]));
    302305
Note: See TracChangeset for help on using the changeset viewer.