Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 1270)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 1271)
@@ -15,4 +15,7 @@
        tasks doesn't waste time if a tasks doesn't have the process
        function
+
+   * mgui/MGeomPix.[h,cc]:
+     - corrected calculation of pixel area
 
 
Index: /trunk/MagicSoft/Mars/mgui/MGeomPix.cc
===================================================================
--- /trunk/MagicSoft/Mars/mgui/MGeomPix.cc	(revision 1270)
+++ /trunk/MagicSoft/Mars/mgui/MGeomPix.cc	(revision 1271)
@@ -24,5 +24,5 @@
 \* ======================================================================== */
 
-///////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
 //
 // MGeomPix
@@ -31,7 +31,9 @@
 // a single pixel together with the information about next neighbors.
 //
-///////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
 
 #include "MGeomPix.h"
+
+#include <math.h>
 
 #include "MLog.h"
@@ -47,4 +49,13 @@
 {
     //  default constructor
+}
+
+// --------------------------------------------------------------------------
+//
+// Return the area of the pixel. A hegagonal shape is assumed.
+//
+Float_t MGeomPix::GetA() const
+{
+    return fR*fR*tan(60/kRad2Deg);
 }
 
