Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 2781)
+++ trunk/MagicSoft/Mars/Changelog	(revision 2782)
@@ -4,4 +4,9 @@
 
                                                  -*-*- END OF LINE -*-*-
+ 2004/01/13: Abelardo Moralejo
+
+   * manalysis/MMcPedestalCopy.cc
+     - added check of whether input file is a MC file before executing 
+       the PreProcess.
 
  2004/01/13: Wolfgang Wittek
Index: trunk/MagicSoft/Mars/manalysis/MMcPedestalCopy.cc
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MMcPedestalCopy.cc	(revision 2781)
+++ trunk/MagicSoft/Mars/manalysis/MMcPedestalCopy.cc	(revision 2782)
@@ -95,6 +95,11 @@
 Int_t MMcPedestalCopy::PreProcess(MParList *pList)
 {
-    // FIXME: This should be done for MC files only...
-    return pList->FindCreateObj(AddSerialNumber("MPedestalCam")) ? kTRUE : kFALSE;
+  //
+  // If it is no MC file skip this function...
+  //
+  if (! CheckRunType(pList))
+    return kTRUE;
+
+  return pList->FindCreateObj(AddSerialNumber("MPedestalCam")) ? kTRUE : kFALSE;
 }
 
@@ -147,4 +152,5 @@
 
         pix.Set(pedest, sigma);
+
     }
 
