Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 2232)
+++ trunk/MagicSoft/Mars/Changelog	(revision 2233)
@@ -1,3 +1,10 @@
                                                  -*-*- END OF LINE -*-*-
+
+ 2003/06/25: Abelardo Moralejo
+
+   * mimage/MImgCleanStd.cc:
+     - Changed name of variable "ratio" to "factor", wherever it meant
+       the square root of the ratio between the area of an inner pixel
+       and the current pixel (it was confusing).
 
  2003/06/24: Thomas Bretz
Index: trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc
===================================================================
--- trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc	(revision 2232)
+++ trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc	(revision 2233)
@@ -332,8 +332,13 @@
         const Float_t  entry = pix.GetNumPhotons();
         const Float_t  noise = pix.GetErrorPhot();
-        const Double_t ratio = TMath::Sqrt(fCam->GetPixRatio(id));
+
+	//
+	// We calculate a correction factor which accounts for the 
+	// fact that pixels have different size (see TDAS 02-14).
+	//
+        const Double_t factor = TMath::Sqrt(fCam->GetPixRatio(id));
 
         // COBB: '<=' to skip entry=noise=0
-        if (entry * ratio <= fCleanLvl1 * noise)
+        if (entry * factor <= fCleanLvl1 * noise)
             pix.SetPixelUnused();
     }
@@ -487,7 +492,12 @@
     const Float_t  entry = pix.GetNumPhotons();
     const Float_t  noise = pix.GetErrorPhot();
-    const Double_t ratio = TMath::Sqrt(fCam->GetPixRatio(id));
-
-    return (entry * ratio <= fCleanLvl2 * noise);
+
+    //
+    // We calculate a correction factor which accounts for the 
+    // fact that pixels have different size (see TDAS 02-14).
+    //
+    const Double_t factor = TMath::Sqrt(fCam->GetPixRatio(id));
+
+    return (entry * factor <= fCleanLvl2 * noise);
 }
 
