Index: trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc
===================================================================
--- trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc	(revision 9362)
+++ trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc	(revision 9367)
@@ -115,5 +115,5 @@
     {
     case kGauss:
-        fFunc=new TF1("", MString::Format("gaus(0) + pol%d(3)", fPolynomOrder));
+        fFunc=new TF1("", MString::Format("gaus(0) + pol%d(3)", fPolynomOrder).Data());
         break;
     case kThetaSq:
@@ -417,5 +417,5 @@
     /*
      cout << MMath::SignificanceLiMaSigned(hon.Integral(1, bin), fit.GetEventsBackground()/sc, sc) << " ";
-     cout << sc << " ";
+     cout << sc << " " << fit.GetEventsBackground() << " ";
      cout << fit.fChiSqBg << endl;
      */
@@ -847,4 +847,8 @@
             return 0;
         return -GetSignificance()*TMath::Log10(GetEventsExcess());
+    case kSignificanceSqrtExcess:
+        if (GetEventsExcess()<1)
+            return 0;
+        return -GetSignificance()*TMath::Sqrt(GetEventsExcess());
     case kSignificanceExcess:
         return -GetSignificance()*GetEventsExcess();
Index: trunk/MagicSoft/Mars/mhflux/MAlphaFitter.h
===================================================================
--- trunk/MagicSoft/Mars/mhflux/MAlphaFitter.h	(revision 9362)
+++ trunk/MagicSoft/Mars/mhflux/MAlphaFitter.h	(revision 9367)
@@ -30,4 +30,5 @@
         kSignificanceChi2,
         kSignificanceLogExcess,
+        kSignificanceSqrtExcess,
         kSignificanceExcess,
         kExcess,
Index: trunk/MagicSoft/Mars/mhflux/MHFalseSource.cc
===================================================================
--- trunk/MagicSoft/Mars/mhflux/MHFalseSource.cc	(revision 9362)
+++ trunk/MagicSoft/Mars/mhflux/MHFalseSource.cc	(revision 9367)
@@ -1,4 +1,4 @@
 /* ======================================================================== *\
-! $Name: not supported by cvs2svn $:$Id: MHFalseSource.cc,v 1.25 2009-02-07 20:47:33 tbretz Exp $
+! $Name: not supported by cvs2svn $:$Id: MHFalseSource.cc,v 1.26 2009-03-01 12:51:03 tbretz Exp $
 ! --------------------------------------------------------------------------
 !
@@ -1189,6 +1189,6 @@
         }
 
-        TF1 f1("f1", MString::Format("gaus(0) + pol%d(3)", fHistOff ? 0 : polynom), 0, 90);
-        TF1 f2("f2", MString::Format("gaus(0) + pol%d(3)", fHistOff ? 0 : polynom), 0, 90);
+        TF1 f1("f1", MString::Format("gaus(0) + pol%d(3)", fHistOff ? 0 : polynom).Data(), 0, 90);
+        TF1 f2("f2", MString::Format("gaus(0) + pol%d(3)", fHistOff ? 0 : polynom).Data(), 0, 90);
         f1.SetParameters(maxpar.GetArray());
         f2.SetParameters(maxpar.GetArray());
