Changeset 7534 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 02/27/06 11:33:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.cc
r7533 r7534 759 759 // Paint the integral and the error on top of the histogram 760 760 // 761 void MHEffectiveOnTime::PaintText(Double_t val, Double_t error, Double_ range) const761 void MHEffectiveOnTime::PaintText(Double_t val, Double_t error, Double_t range) const 762 762 { 763 763 TLatex text; 764 764 text.SetBit(TLatex::kTextNDC); 765 765 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(); 770 775 } 771 776 … … 905 910 h = &fHTimeEffOn; 906 911 UpdateRightAxis(fHTimeLambda); 907 range = h->GetXaxis()->GetXmax() ->h->GetXaxis()->GetXmin();912 range = h->GetXaxis()->GetXmax() - h->GetXaxis()->GetXmin(); 908 913 } 909 914
Note:
See TracChangeset
for help on using the changeset viewer.