Ignore:
Timestamp:
02/27/06 11:33:38 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7533 r7534  
    759759//  Paint the integral and the error on top of the histogram
    760760//
    761 void MHEffectiveOnTime::PaintText(Double_t val, Double_t error, Double_range) const
     761void MHEffectiveOnTime::PaintText(Double_t val, Double_t error, Double_t range) const
    762762{
    763763    TLatex text;
    764764    text.SetBit(TLatex::kTextNDC);
    765765    text.SetTextSize(0.04);
    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));
     766
     767    text.SetText(0.45, 0.94, Form("T_{eff} = %.1fs \\pm %.1fs", val, error));
     768    text.Paint();
     769
     770    if (range<0)
     771        return;
     772
     773    text.SetText(0.66, 0.94, Form("T_{axe} = %.1fs", range));
     774    text.Paint();
    770775}
    771776
     
    905910        h = &fHTimeEffOn;
    906911        UpdateRightAxis(fHTimeLambda);
    907         range = h->GetXaxis()->GetXmax()->h->GetXaxis()->GetXmin();
     912        range = h->GetXaxis()->GetXmax() - h->GetXaxis()->GetXmin();
    908913    }
    909914
Note: See TracChangeset for help on using the changeset viewer.