Index: trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc
===================================================================
--- trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc	(revision 2209)
+++ 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);
 }
 
