Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 2464)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 2465)
@@ -28,5 +28,5 @@
      - changed version number from 1 to 2
 
-   * mimage/MImgCleanStd.cc:
+   * mimage/MImgCleanStd.cc, mimage/MImgCleanTGB.cc:
      - directly use MGeomCam::GetPixRatioSqrt() now
 
Index: /trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc
===================================================================
--- /trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc	(revision 2464)
+++ /trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc	(revision 2465)
@@ -343,5 +343,5 @@
 	// fact that pixels have different size (see TDAS 02-14).
 	//
-        const Double_t factor = TMath::Sqrt(fCam->GetPixRatio(idx));
+        const Double_t factor = fCam->GetPixRatioSqrt(idx);
 
         // COBB: '<=' to skip entry=noise=0
@@ -509,5 +509,5 @@
     // fact that pixels have different size (see TDAS 02-14).
     //
-    const Double_t factor = TMath::Sqrt(fCam->GetPixRatio(idx));
+    const Double_t factor = fCam->GetPixRatioSqrt(idx);
 
     return (entry * factor <= fCleanLvl2 * noise);
Index: /trunk/MagicSoft/Mars/mimage/MImgCleanTGB.cc
===================================================================
--- /trunk/MagicSoft/Mars/mimage/MImgCleanTGB.cc	(revision 2464)
+++ /trunk/MagicSoft/Mars/mimage/MImgCleanTGB.cc	(revision 2465)
@@ -253,9 +253,11 @@
         MCerPhotPix &pix = (*fEvt)[i];
 
-        const Double_t entry  = pix.GetNumPhotons();
-        const Double_t factor = fCam->GetPixRatio(pix.GetPixId());
-        const Float_t  noise  = (*fPed)[pix.GetPixId()].GetPedestalRms();
-
-        if (entry * TMath::Sqrt(factor) <= fCleanLvl2 * noise)
+        const Int_t    idx        = pix.GetPixId();
+        const Double_t entry      = pix.GetNumPhotons();
+        const Double_t factor     = fCam->GetPixRatio(idx);
+        const Double_t factorsqrt = fCam->GetPixRatioSqrt(idx);
+        const Float_t  noise      = (*fPed)[idx].GetPedestalRms();
+
+        if (entry * factorsqrt <= fCleanLvl2 * noise)
         {
             sum += entry*factor;
