Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 4538)
+++ trunk/MagicSoft/Mars/Changelog	(revision 4539)
@@ -34,4 +34,7 @@
      - fixed a bug in one possible output using Form() 
        which produced a segm.violation in that case.
+
+   * mcalib/MHCalibrationTestCam.cc
+     - adapt class for the interpolation of pixels.
 
 
Index: trunk/MagicSoft/Mars/mcalib/MHCalibrationTestCam.cc
===================================================================
--- trunk/MagicSoft/Mars/mcalib/MHCalibrationTestCam.cc	(revision 4538)
+++ trunk/MagicSoft/Mars/mcalib/MHCalibrationTestCam.cc	(revision 4539)
@@ -317,7 +317,4 @@
       MHGausEvents &histhi = (*this)[i];
 
-      if (histhi.IsExcluded())
-	continue;
-
       const MCerPhotPix *pix = calibration->GetPixById(i);
       if (!pix)
@@ -326,8 +323,12 @@
       const Float_t   signal = pix->GetNumPhotons();
 
+      if (signal < 0.0001)
+        continue;
+      
       const Int_t aidx   = (*fGeom)[i].GetAidx();
       const Int_t sector = (*fGeom)[i].GetSector();
 
       histhi.FillHistAndArray(signal) ;
+
       sumareahi  [aidx]   += signal;
       numareahi  [aidx]   ++;
@@ -340,5 +341,4 @@
       MHGausEvents &histhi = GetAverageHiGainArea(j);
       histhi.FillHistAndArray(numareahi[j] == 0 ? 0. : sumareahi[j]/numareahi[j]);
-
     }
   
@@ -364,4 +364,6 @@
 {
 
+  *fLog << endl;
+
   TArrayI numaidx;
   numaidx.Set(fGeom->GetNumAreas());
@@ -372,15 +374,13 @@
       MHGausEvents &hist = (*this)[i];
       
-      if (hist.IsExcluded())
-        continue;
-      
       if (hist.IsEmpty())
-        continue;
+        {
+          *fLog << warn << GetDescriptor() << ": WARNING: Not interpolated histogram pixel: " << i << endl;
+          continue;
+        }
       
       if (!hist.FitGaus())
         if (!hist.RepeatFit())
-          {
-            hist.BypassFit();
-          }
+          hist.BypassFit();
       
       hist.CreateFourierSpectrum();
@@ -406,7 +406,5 @@
       if (!hist.FitGaus())
         if (!hist.RepeatFit())
-          {
-            hist.BypassFit();
-          }
+          hist.BypassFit();
       
       hist.CreateFourierSpectrum();
@@ -435,10 +433,7 @@
       if (!hist.FitGaus())
         if (!hist.RepeatFit())
-          {
-            hist.BypassFit();
-          }
+          hist.BypassFit();
+
       hist.CreateFourierSpectrum();
-      
-
     }
 
@@ -496,5 +491,5 @@
   const MHGausEvents &pix = (*this)[idx];
 
-  if (pix.IsExcluded())
+  if (pix.IsEmpty())
     return kFALSE;
 
