Index: trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc
===================================================================
--- trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc	(revision 7775)
+++ trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc	(revision 7777)
@@ -330,9 +330,9 @@
     // Assuming that bg and fit2.GetEventsBackground() are rather identical:
     const Double_t sc = er*er / fit.GetEventsBackground();
-    /*
+
      cout << MMath::SignificanceLiMaSigned(hon.Integral(1, bin), fit.GetEventsBackground()/sc, sc) << " ";
      cout << sc << " ";
      cout << fit.fChiSqBg << endl;
-     */
+
     return sc;
 }
@@ -404,5 +404,5 @@
 }
 
-void MAlphaFitter::PaintResult(Float_t x, Float_t y, Float_t size) const
+void MAlphaFitter::PaintResult(Float_t x, Float_t y, Float_t size, Bool_t draw) const
 {
     const Double_t w  = GetGausSigma();
@@ -413,16 +413,24 @@
     const TString fmt = Form("\\sigma_{L/M}=%%.1f  \\omega=%%.%df\\circ  E=%%d B=%%d  x<%%.%df  \\tilde\\chi_{b}=%%.1f  \\tilde\\chi_{s}=%%.1f  c=%%.1f  f=%%.2f",
                              l1<1?1:l1+1, l2<1?1:l2+1);
-
-    TLatex text(x, y, Form(fmt.Data(), fSignificance, w, (int)fEventsExcess,
-                           (int)fEventsBackground, m, fChiSqBg, fChiSqSignal,
-                           fCoefficients[3], fScaleFactor));
-
+    const TString txt = Form(fmt.Data(), fSignificance, w, (int)fEventsExcess,
+                             (int)fEventsBackground, m, fChiSqBg, fChiSqSignal,
+                             fCoefficients[3], fScaleFactor);
+
+    // This is totaly weired but the only way to get both options
+    // working with this nonsense implementation of TLatex
+    TLatex text(x, y, txt);
     text.SetBit(TLatex::kTextNDC);
     text.SetTextSize(size);
-    text.Paint();
+    if (draw)
+        text.DrawLatex(x, y, txt);
+    else
+        text.Paint();
 
     TLine line;
     line.SetLineColor(14);
-    line.PaintLine(m, gPad->GetUymin(), m, gPad->GetUymax());
+    if (draw)
+        line.DrawLine(m, gPad->GetUymin(), m, gPad->GetUymax());
+    else
+        line.PaintLine(m, gPad->GetUymin(), m, gPad->GetUymax());
 }
 
Index: trunk/MagicSoft/Mars/mhflux/MAlphaFitter.h
===================================================================
--- trunk/MagicSoft/Mars/mhflux/MAlphaFitter.h	(revision 7775)
+++ trunk/MagicSoft/Mars/mhflux/MAlphaFitter.h	(revision 7777)
@@ -237,5 +237,6 @@
 
     // Interface to result
-    void PaintResult(Float_t x=0.04, Float_t y=0.94, Float_t size=0.035) const;
+    void PaintResult(Float_t x=0.04, Float_t y=0.94, Float_t size=0.035, Bool_t draw=kFALSE) const;
+    void DrawResult(Float_t x=0.04, Float_t y=0.94, Float_t size=0.035) const { PaintResult(x, y, size, kTRUE); }
 
     // MTask
