Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 9397)
+++ trunk/MagicSoft/Mars/Changelog	(revision 9398)
@@ -18,4 +18,15 @@
 
                                                  -*-*- END OF LINE -*-*-
+ 2009/03/15 Thomas Bretz
+
+   * mgeom/MGeomCam.[h,cc]:
+     - added member function to get the total sensitive area of the
+       camera
+
+   * mgeom/MGeomCamMagic.cc:
+     - included TMath for newer root versions
+
+
+
  2009/03/07 Thomas Bretz
 
Index: trunk/MagicSoft/Mars/mgeom/MGeomCam.cc
===================================================================
--- trunk/MagicSoft/Mars/mgeom/MGeomCam.cc	(revision 9397)
+++ trunk/MagicSoft/Mars/mgeom/MGeomCam.cc	(revision 9398)
@@ -320,4 +320,17 @@
 // --------------------------------------------------------------------------
 //
+// Return the total area of the camera
+//
+Float_t MGeomCam::GetA() const
+{
+    Double_t A = 0;
+    for (unsigned int i=0; i<fNumPixels; i++)
+        A += (*this)[i].GetA();
+
+    return A;
+}
+
+// --------------------------------------------------------------------------
+//
 // Returns the distance between the pixels i and j. -1 if an index
 // doesn't exist. The default for j is 0. Assuming that 0 is the index
Index: trunk/MagicSoft/Mars/mgeom/MGeomCam.h
===================================================================
--- trunk/MagicSoft/Mars/mgeom/MGeomCam.h	(revision 9397)
+++ trunk/MagicSoft/Mars/mgeom/MGeomCam.h	(revision 9398)
@@ -91,4 +91,6 @@
     Float_t GetAngle(UShort_t i, UShort_t j=0) const;
 
+    Float_t GetA() const;
+
     Float_t GetPixRatio(UInt_t i) const;
     Float_t GetPixRatioSqrt(UInt_t i) const;
Index: trunk/MagicSoft/Mars/mgeom/MGeomCamMagic.cc
===================================================================
--- trunk/MagicSoft/Mars/mgeom/MGeomCamMagic.cc	(revision 9397)
+++ trunk/MagicSoft/Mars/mgeom/MGeomCamMagic.cc	(revision 9398)
@@ -33,4 +33,6 @@
 ////////////////////////////////////////////////////////////////////////////
 #include "MGeomCamMagic.h"
+
+#include <TMath.h>
 
 #include "MGeomPix.h"
