Index: trunk/MagicSoft/Mars/mgui/MCamDisplay.cc
===================================================================
--- trunk/MagicSoft/Mars/mgui/MCamDisplay.cc	(revision 1334)
+++ trunk/MagicSoft/Mars/mgui/MCamDisplay.cc	(revision 1384)
@@ -269,4 +269,26 @@
 }
 
+void MCamDisplay::DrawPixelNumbers()
+{
+    if (!fDrawingPad)
+        Draw();
+
+    fDrawingPad->cd();
+
+    TText txt;
+    txt.SetTextFont(122);
+    txt.SetTextAlign(22);   // centered/centered
+
+    for (UInt_t i=0; i<fNumPixels; i++)
+    {
+        TString num;
+        num += i;
+
+        const MHexagon &h = (MHexagon&)*(*fPixels)[i];
+        TText *nt = txt.DrawText(h.GetX(), h.GetY(), num);
+        nt->SetTextSize(0.0005*h.GetD());
+    }
+}
+
 // ------------------------------------------------------------------------
 //
Index: trunk/MagicSoft/Mars/mgui/MCamDisplay.h
===================================================================
--- trunk/MagicSoft/Mars/mgui/MCamDisplay.h	(revision 1334)
+++ trunk/MagicSoft/Mars/mgui/MCamDisplay.h	(revision 1384)
@@ -58,4 +58,6 @@
     void DrawPhotNum(const MCerPhotEvt *event);
 
+    void DrawPixelNumbers();
+
     void Reset();
     void Draw(Option_t *option="");
Index: trunk/MagicSoft/Mars/mgui/MHexagon.h
===================================================================
--- trunk/MagicSoft/Mars/mgui/MHexagon.h	(revision 1334)
+++ trunk/MagicSoft/Mars/mgui/MHexagon.h	(revision 1384)
@@ -57,4 +57,8 @@
     virtual void  SavePrimitive(ofstream &out, Option_t *);
 
+    Float_t GetX() const { return fX; }
+    Float_t GetY() const { return fY; }
+    Float_t GetD() const { return fD; }
+
     ClassDef(MHexagon, 0)    // A hexagon for MAGIC
 };
