Ignore:
Timestamp:
02/27/06 11:17:27 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhflux
Files:
2 edited

Legend:

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

    r7178 r7533  
    759759//  Paint the integral and the error on top of the histogram
    760760//
    761 void MHEffectiveOnTime::PaintText(Double_t val, Double_t error) const
    762 {
    763     TLatex text(0.45, 0.94, Form("T_{eff} = %.1fs \\pm %.1fs", val, error));
     761void MHEffectiveOnTime::PaintText(Double_t val, Double_t error, Double_range) const
     762{
     763    TLatex text;
    764764    text.SetBit(TLatex::kTextNDC);
    765765    text.SetTextSize(0.04);
    766     text.Paint();
     766    text.PaintLatex(0.45, 0.94, Form("T_{eff} = %.1fs \\pm %.1fs", val, error));
     767
     768    if (range>=0)
     769        text.PaintLatex(0.66, 0.94, Form("T_{axe} = %.1fs", range));
    767770}
    768771
     
    891894
    892895    h=0;
     896
     897    Double_t range=-1;
    893898    if (o==(TString)"theta")
    894899    {
     
    900905        h = &fHTimeEffOn;
    901906        UpdateRightAxis(fHTimeLambda);
     907        range = h->GetXaxis()->GetXmax()->h->GetXaxis()->GetXmin();
    902908    }
    903909
     
    909915        error += h->GetBinError(i);
    910916
    911     PaintText(h->Integral(), error);
     917    PaintText(h->Integral(), error, range);
    912918}
    913919
  • trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.h

    r5620 r7533  
    5757    void FitTimeBin();
    5858    void PaintProb(TH1 &h) const;
    59     void PaintText(Double_t val, Double_t error) const;
     59    void PaintText(Double_t val, Double_t error, Double_t range=-1) const;
    6060    void PaintText(Double_t *res) const;
    6161    void DrawRightAxis(const char *title);
Note: See TracChangeset for help on using the changeset viewer.