Index: trunk/MagicSoft/Mars/manalysis/MCT1PadONOFF.cc
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MCT1PadONOFF.cc	(revision 2253)
+++ trunk/MagicSoft/Mars/manalysis/MCT1PadONOFF.cc	(revision 2255)
@@ -1401,5 +1401,6 @@
     Int_t j = pix.GetPixId();
 
-    Double_t ratioArea = fCam->GetPixRatio(j);
+    // GetPixRatio returns (area of pixel 0 / area of current pixel)
+    Double_t ratioArea = 1.0 / fCam->GetPixRatio(j);
 
     MPedestalPix &ppix = (*fPed)[j];
Index: trunk/MagicSoft/Mars/manalysis/MCT1PadSchweizer.cc
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MCT1PadSchweizer.cc	(revision 2253)
+++ trunk/MagicSoft/Mars/manalysis/MCT1PadSchweizer.cc	(revision 2255)
@@ -540,5 +540,6 @@
     Int_t j = pix.GetPixId();
 
-    Double_t ratioArea = fCam->GetPixRatio(j);
+    // GetPixRatio returns (area of pixel 0 / area of current pixel)
+    Double_t ratioArea = 1.0 / fCam->GetPixRatio(j);
 
     MPedestalPix &ppix = (*fPed)[j];
Index: trunk/MagicSoft/Mars/manalysis/MSigmabar.cc
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MSigmabar.cc	(revision 2253)
+++ trunk/MagicSoft/Mars/manalysis/MSigmabar.cc	(revision 2255)
@@ -136,6 +136,4 @@
 
         const Int_t idx = cerpix.GetPixId();
-        const Double_t area = geom.GetPixRatio(idx);
-
         if (idx == 0)
 	{
@@ -145,4 +143,8 @@
         }
 
+        // ratio is the area of pixel 0
+        //          divided by the area of the current pixel
+        const Double_t ratio = geom.GetPixRatio(idx);
+
         const MGeomPix &gpix = geom[idx];
 
@@ -157,13 +159,14 @@
             continue;
 
-        if (area < 1.5)
+        //if (area < 1.5)
+        if (ratio > 0.5)
         {
             innerPixels[sector]++;
-            innerSquaredSum[sector]+= sigma*sigma / area;
+            innerSquaredSum[sector]+= sigma*sigma * ratio;
         }
         else
         {
             outerPixels[sector]++;
-            outerSquaredSum[sector]+= sigma*sigma / area;
+            outerSquaredSum[sector]+= sigma*sigma * ratio;
         }
     }
@@ -243,2 +246,11 @@
 
 }
+
+
+
+
+
+
+
+
+
