Changeset 7533 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 02/27/06 11:17:27 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mhflux
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.cc
r7178 r7533 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 ) const762 { 763 TLatex text (0.45, 0.94, Form("T_{eff} = %.1fs \\pm %.1fs", val, error));761 void MHEffectiveOnTime::PaintText(Double_t val, Double_t error, Double_range) const 762 { 763 TLatex text; 764 764 text.SetBit(TLatex::kTextNDC); 765 765 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)); 767 770 } 768 771 … … 891 894 892 895 h=0; 896 897 Double_t range=-1; 893 898 if (o==(TString)"theta") 894 899 { … … 900 905 h = &fHTimeEffOn; 901 906 UpdateRightAxis(fHTimeLambda); 907 range = h->GetXaxis()->GetXmax()->h->GetXaxis()->GetXmin(); 902 908 } 903 909 … … 909 915 error += h->GetBinError(i); 910 916 911 PaintText(h->Integral(), error );917 PaintText(h->Integral(), error, range); 912 918 } 913 919 -
trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.h
r5620 r7533 57 57 void FitTimeBin(); 58 58 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; 60 60 void PaintText(Double_t *res) const; 61 61 void DrawRightAxis(const char *title);
Note:
See TracChangeset
for help on using the changeset viewer.