Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 7648)
+++ trunk/MagicSoft/Mars/Changelog	(revision 7649)
@@ -23,4 +23,8 @@
    * mraw/MRawRunHeader.cc:
      - some small changes, mainly output and comments
+
+   * mhflux/MHAlpha.[h,cc]:
+     - show also the integrated number of excess events in the 
+       plot versus energy/size and show the correct error.
 
 
Index: trunk/MagicSoft/Mars/mhflux/MHAlpha.cc
===================================================================
--- trunk/MagicSoft/Mars/mhflux/MHAlpha.cc	(revision 7648)
+++ trunk/MagicSoft/Mars/mhflux/MHAlpha.cc	(revision 7649)
@@ -501,4 +501,20 @@
 // --------------------------------------------------------------------------
 //
+//  Paint the integral and the error on top of the histogram
+//
+void MHAlpha::PaintText(const TH1D &h) const
+{
+    Double_t sumv = 0;
+    Double_t sume = 0;
+
+    for (int i=0; i<h.GetNbinsX(); i++)
+    {
+        sumv += h.GetBinContent(i+1);
+        sume += h.GetBinError(i+1);
+    }
+    PaintText(sumv, sume);
+}
+// --------------------------------------------------------------------------
+//
 // Update the projections
 //
@@ -578,5 +594,5 @@
 
     if (o==(TString)"time")
-        PaintText(fHTime.Integral(), 0);
+        PaintText(fHTime);//.Integral(), 0);
 
     if (o==(TString)"theta")
@@ -592,5 +608,5 @@
             delete h2;
         }
-        PaintText(fHTheta.Integral(), 0);
+        PaintText(fHTheta);//.Integral(), 0);
     }
 
@@ -607,4 +623,5 @@
             delete h2;
         }
+        PaintText(fHEnergy);//.Integral(), 0);
 
         if (fHEnergy.GetMaximum()>1)
Index: trunk/MagicSoft/Mars/mhflux/MHAlpha.h
===================================================================
--- trunk/MagicSoft/Mars/mhflux/MHAlpha.h	(revision 7648)
+++ trunk/MagicSoft/Mars/mhflux/MHAlpha.h	(revision 7649)
@@ -75,4 +75,5 @@
 
     void PaintText(Double_t val, Double_t error) const;
+    void PaintText(const TH1D &h) const;
 
     Int_t DistancetoPrimitive(Int_t px, Int_t py);
