Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 6688)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 6689)
@@ -29,4 +29,8 @@
      - fixed the situation where the maximum bin is already found in the
        low-gain samples.
+
+   * mjobs/MJCalibration.cc
+     - write the MPedestalCams also to disk (needed for data-check).
+
 
  2005/02/25 Abelardo Moralejo
Index: /trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.cc
===================================================================
--- /trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.cc	(revision 6688)
+++ /trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.cc	(revision 6689)
@@ -704,4 +704,7 @@
         MBadPixelsPix &bad = fIntensBad ? (*fIntensBad)[i] : (*fBadPixels)[i];
         InitHists(pix,bad,i);
+
+	if (fCam)
+	  (*fCam)[i].SetPixId(i);
       }
   }
Index: /trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
===================================================================
--- /trunk/MagicSoft/Mars/mjobs/MJCalibration.cc	(revision 6688)
+++ /trunk/MagicSoft/Mars/mjobs/MJCalibration.cc	(revision 6689)
@@ -2104,4 +2104,13 @@
         cont.Add(IsIntensity() ? (TObject*)&fIntensRelTimeCam : (TObject*)&fRelTimeCam);
 
+	if (fExtractorCam.GetSize() != 0)
+	  cont.Add(&fExtractorCam);
+	
+	TObject *pedcam = plist.FindObject("MPedestalCam");
+        if (!pedcam)
+	  *fLog << warn << " - WARNING - MPedestalCam (fundamental)... not found for writing!" << endl;
+        else
+	  cont.Add(pedcam);
+	
         TObject *geom = plist.FindObject("MGeomCam");
         if (!geom)
