Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 2839)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 2840)
@@ -7,4 +7,5 @@
  2004/01/19: Markus Gaug
 
+   * mcalib/MCalibrationCalc.cc
    * mcalib/MCalibrationPix.[h,cc]
      - new Flag fExcluded to indicate if pixel has been excluded from 
Index: /trunk/MagicSoft/Mars/mcalib/MCalibrationCalc.cc
===================================================================
--- /trunk/MagicSoft/Mars/mcalib/MCalibrationCalc.cc	(revision 2839)
+++ /trunk/MagicSoft/Mars/mcalib/MCalibrationCalc.cc	(revision 2840)
@@ -1,3 +1,3 @@
- /* ======================================================================== *\
+/* ======================================================================== *\
 !
 ! *
@@ -107,5 +107,9 @@
 //
 MCalibrationCalc::MCalibrationCalc(const char *name, const char *title)
-    : fColor(kEBlue)
+    : fPedestals(NULL), fCalibrations(NULL), fSignals(NULL),
+      fRawEvt(NULL), fRunHeader(NULL), fEvtTime(NULL),
+      fEvents(0), fHistOverFlow(0), fCosmics(0),
+      fNumHiGainSamples(0), fNumLoGainSamples(0), fConversionHiLo(0.),
+      fColor(kEBlue)
 {
 
@@ -139,8 +143,4 @@
 Int_t MCalibrationCalc::PreProcess(MParList *pList)
 {
-
-    fHistOverFlow = 0;
-    fEvents       = 0;
-    fCosmics      = 0;
 
     fRawEvt = (MRawEvtData*)pList->FindObject("MRawEvtData");
@@ -253,5 +253,4 @@
  
 }
-
 
 // --------------------------------------------------------------------------
@@ -475,4 +474,11 @@
       pix.SetPedestal(ped,prms);
 
+
+      //
+      // Check if the pixel has been excluded from the fits
+      //
+      if (pix.IsExcluded())
+        continue;
+
       //
       // perform the Gauss fits to the charges
@@ -505,2 +511,3 @@
   return kTRUE;
 }
+
