Index: trunk/MagicSoft/Mars/mgeom/MGeomCam.cc
===================================================================
--- trunk/MagicSoft/Mars/mgeom/MGeomCam.cc	(revision 1516)
+++ trunk/MagicSoft/Mars/mgeom/MGeomCam.cc	(revision 1540)
@@ -112,4 +112,14 @@
 // --------------------------------------------------------------------------
 //
+//  returns the ratio of the area of the given pixel to the pixel with
+//  the id 0 to scale variables with the pixel size.
+//
+inline Float_t MGeomCam::GetPixRatio(Int_t i) const
+{
+    return (*this)[0].GetA()/(*this)[i].GetA();
+}
+
+// --------------------------------------------------------------------------
+//
 //  Prints the Geometry information of all pixels in the camera
 //
Index: trunk/MagicSoft/Mars/mgeom/MGeomCam.h
===================================================================
--- trunk/MagicSoft/Mars/mgeom/MGeomCam.h	(revision 1516)
+++ trunk/MagicSoft/Mars/mgeom/MGeomCam.h	(revision 1540)
@@ -31,12 +31,15 @@
     virtual ~MGeomCam();
 
-    Float_t GetCameraDist() const { return fCamDist; }
-    Float_t GetConvMm2Deg() const { return fConvMm2Deg; }
+    Float_t GetCameraDist() const      { return fCamDist; }
+    Float_t GetConvMm2Deg() const      { return fConvMm2Deg; }
 
-    UInt_t  GetNumPixels() const { return fNumPixels; }
-    Float_t GetMaxRadius() const { return fMaxRadius; }
+    UInt_t  GetNumPixels() const       { return fNumPixels; }
+    Float_t GetMaxRadius() const       { return fMaxRadius; }
+    Float_t GetPixRatio(Int_t i) const;
 
     MGeomPix &operator[](Int_t i)       { return *(MGeomPix*)fPixels->UncheckedAt(i); }
     MGeomPix &operator[](Int_t i) const { return *(MGeomPix*)fPixels->UncheckedAt(i); }
+
+
 
     virtual void Print(Option_t *opt=NULL) const;
