Index: trunk/MagicSoft/Mars/mhist/MHCamera.cc
===================================================================
--- trunk/MagicSoft/Mars/mhist/MHCamera.cc	(revision 2296)
+++ trunk/MagicSoft/Mars/mhist/MHCamera.cc	(revision 2297)
@@ -222,4 +222,22 @@
 }
 
+// ------------------------------------------------------------------------
+//
+// Use x and y in millimeters
+//
+Int_t MHCamera::Fill(Axis_t x, Axis_t y, Stat_t w)
+{
+    for (Int_t idx=0; idx<fNcells-2; idx++)
+    {
+        MHexagon hex((*fGeomCam)[idx]);
+        if (hex.DistanceToPrimitive(x, y)>0)
+            continue;
+
+        SetUsed(idx);
+        return Fill(idx, w);
+    }
+    return -1;
+}
+
 Stat_t MHCamera::GetMean(Int_t axis) const
 {
@@ -839,5 +857,5 @@
 }
 
-TPaveStats *MHCamera::GetStats()
+TPaveStats *MHCamera::GetStatisticBox()
 {
     TObject *obj = 0;
@@ -857,5 +875,5 @@
 void MHCamera::UpdateLegend(Float_t min, Float_t max, Bool_t islog)
 {
-    TPaveStats *stats = GetStats();
+    TPaveStats *stats = GetStatisticBox();
 
     const Float_t hndc   = 0.92 - (stats ? stats->GetY1NDC() : 1);
@@ -992,6 +1010,4 @@
 // ------------------------------------------------------------------------
 //
-// Function introduced  (31-01-03)  WILL BE REMOVED IN THE FUTURE! DON'T
-// USE IT!
 //
 Int_t MHCamera::GetPixelIndex(Int_t px, Int_t py) const
Index: trunk/MagicSoft/Mars/mhist/MHCamera.h
===================================================================
--- trunk/MagicSoft/Mars/mhist/MHCamera.h	(revision 2296)
+++ trunk/MagicSoft/Mars/mhist/MHCamera.h	(revision 2297)
@@ -45,5 +45,5 @@
     void  SetRange();
 
-    TPaveStats *GetStats();
+    TPaveStats *GetStatisticBox();
 
     Int_t GetPixelIndex(Int_t px, Int_t py) const;
@@ -74,4 +74,6 @@
 
     Bool_t IsUsed(Int_t idx) const { return TESTBIT(const_cast<TArrayC&>(fUsed)[idx], kIsUsed); }
+
+    Int_t Fill(Axis_t x, Axis_t y, Stat_t w);
 
     //void     AddPixContent(Int_t idx) const { AddBinContent(idx+1); }
@@ -146,4 +148,6 @@
 
     //void SetStatusBar(TGStatusBar *bar) { fStatusBar = bar; }
+
+    const MGeomCam &GetGeomCam() const { return *fGeomCam; }
 
     ClassDef(MHCamera, 1) // Displays the magic camera
Index: trunk/MagicSoft/Mars/mhist/MHStarMap.cc
===================================================================
--- trunk/MagicSoft/Mars/mhist/MHStarMap.cc	(revision 2296)
+++ trunk/MagicSoft/Mars/mhist/MHStarMap.cc	(revision 2297)
@@ -32,7 +32,7 @@
 //
 /////////////////////////////////////////////////////////////////////////////
-
 #include "MHStarMap.h"
 
+#include <TH2.h>
 #include <TStyle.h>   // gStyle
 #include <TColor.h>   // SetRGB
Index: trunk/MagicSoft/Mars/mhist/MHStarMap.h
===================================================================
--- trunk/MagicSoft/Mars/mhist/MHStarMap.h	(revision 2296)
+++ trunk/MagicSoft/Mars/mhist/MHStarMap.h	(revision 2297)
@@ -6,8 +6,5 @@
 #endif
 
-#ifndef ROOT_TH2
-#include <TH2.h>
-#endif
-
+class TH2F;
 class MHillas;
 
@@ -35,5 +32,5 @@
     Bool_t Fill(const MParContainer *par, const Stat_t w=1);
 
-    TH1 *GetHistByName(const TString name) { return fStarMap; }
+    TH1 *GetHistByName(const TString name) { return (TH1*)fStarMap; }
 
     TH2F *GetHist() { return fStarMap; }
