Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 6501)
+++ trunk/MagicSoft/Mars/Changelog	(revision 6502)
@@ -105,4 +105,14 @@
    * mjobs/MJStar.cc:
      - copy tree 'MonteCarlo' from old into new files
+
+   * mjobs/MJPedestal.cc:
+     - removed wrong use of MFEventSelector
+
+   * mpedestal/MExtractPedestal.cc:
+     - made sure that fExtractor is correctly pre- and 
+       postprocessed.
+
+   * mbase/MTask.cc:
+     - don't preprocess a task if it has been preprocessed already
 
 
Index: trunk/MagicSoft/Mars/mbase/MTask.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MTask.cc	(revision 6501)
+++ trunk/MagicSoft/Mars/mbase/MTask.cc	(revision 6502)
@@ -207,7 +207,11 @@
 // Sets the preprocessed flag dependend on the return value of PreProcess.
 // Resets number of executions and cpu consumtion timer.
+// If task has already been preprocessed return kTRUE.
 //
 Int_t MTask::CallPreProcess(MParList *plist)
 {
+    if (fIsPreprocessed)
+        return kTRUE;
+
     // This does not reset the counter!
     fStopwatch->Reset();
Index: trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
===================================================================
--- trunk/MagicSoft/Mars/mjobs/MJPedestal.cc	(revision 6501)
+++ trunk/MagicSoft/Mars/mjobs/MJPedestal.cc	(revision 6502)
@@ -62,5 +62,4 @@
 // Other basic classes
 #include "MExtractTimeAndCharge.h"
-#include "MFEventSelector.h"
 
 // parameter containers
@@ -981,14 +980,4 @@
     }
 
-    MFEventSelector sel;
-    sel.SetNumSelectEvts(0);
-    
-    if (fExtractionType!=kFundamental)
-      {
-        fExtractor->SetFilter(&sel);
-        tlist.AddToList(&sel);
-        tlist.AddToList(fExtractor);
-      }
-
     // ----------------------------------------------------------------------
     //   Now we make sure, that in all cases the ranges are setup correctly
Index: trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc
===================================================================
--- trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc	(revision 6501)
+++ trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc	(revision 6502)
@@ -366,6 +366,5 @@
   Print();
 
-  // FIMXE: MUST call fExtractor->PreProcess()???
-  return kTRUE;
+  return fExtractor ? fExtractor->CallPreProcess(pList) : kTRUE;
 }
 
@@ -455,5 +454,5 @@
 {
   fPedestalsIn = NULL;
-  return kTRUE;
+  return fExtractor ? fExtractor->CallPostProcess() : kTRUE;
 }
 
