Index: trunk/MagicSoft/Mars/mhflux/MHCollectionArea.cc
===================================================================
--- trunk/MagicSoft/Mars/mhflux/MHCollectionArea.cc	(revision 6965)
+++ trunk/MagicSoft/Mars/mhflux/MHCollectionArea.cc	(revision 6976)
@@ -32,4 +32,5 @@
 
 #include <TCanvas.h>
+#include <TPaveStats.h>
 
 #include "MLog.h"
@@ -274,5 +275,27 @@
 void MHCollectionArea::Paint(Option_t *option)
 {
-    TVirtualPad *pad = gPad;
+    TVirtualPad *pad;
+
+    TPaveStats *st=0;
+    for (int x=0; x<4; x++)
+    {
+        pad=gPad->GetPad(x+1);
+        if (!pad || !(st = (TPaveStats*)pad->GetPrimitive("stats")))
+            continue;
+
+        if (st->GetOptStat()==11)
+            continue;
+
+        const Double_t y1 = st->GetY1NDC();
+        const Double_t y2 = st->GetY2NDC();
+        const Double_t x1 = st->GetX1NDC();
+        const Double_t x2 = st->GetX2NDC();
+
+        st->SetY1NDC((y2-y1)/3+y1);
+        st->SetX1NDC((x2-x1)/3+x1);
+        st->SetOptStat(11);
+    }
+
+    pad = gPad;
 
     TH1 *h1=0, *h2=0;
@@ -288,5 +311,5 @@
         h2=fHistSel.ProjectionY("ProjSelY", -1, 9999, "E");
 
-    if (h1->GetMaximum()>0)
+    if (h1 && h1->GetMaximum()>0)
     {
         gPad->SetLogx();
Index: trunk/MagicSoft/Mars/mhflux/MHCollectionArea.h
===================================================================
--- trunk/MagicSoft/Mars/mhflux/MHCollectionArea.h	(revision 6965)
+++ trunk/MagicSoft/Mars/mhflux/MHCollectionArea.h	(revision 6976)
@@ -53,4 +53,5 @@
     TH2D &GetHistAll()             { return fHistAll; }
     const TH2D &GetHistAll() const { return fHistAll; }
+    const TH2D &GetHistSel() const { return fHistSel; }
     const TH1D &GetHEnergy() const { return fHEnergy; }
 
