Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 6241)
+++ trunk/MagicSoft/Mars/Changelog	(revision 6242)
@@ -43,4 +43,9 @@
      - intialize fTimeShiftHiGain and fTimeShiftLoGain by default.
  
+   * mjobs/MJPedestal.cc
+     - in case, extractor is used, put the extractor into the tasklist, 
+       otherwise ranges do not get initialized correctly (wrong memory 
+       usage!). Use an event selector, however to not skip the Process.
+       This is as fast as before and now safe for any kind of extractor
 
 
Index: trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
===================================================================
--- trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc	(revision 6241)
+++ trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc	(revision 6242)
@@ -339,5 +339,6 @@
 
     SetPulserColor ( MCalibrationCam::kNONE );
-    
+
+    fStrength    = 0.;
     fBlindPixelFlags.Set(0);
     fPINDiodeFlags  .Set(0);
@@ -1389,5 +1390,5 @@
       *fLog << inf << GetDescriptor() 
             << ": Average total phes for area idx " << aidx << ": "
-            << Form("%7.2f +- 6.2f",areaphes[aidx],TMath::Sqrt(areaweights[aidx])) << endl;
+            << Form("%7.2f +- %6.2f",areaphes[aidx],TMath::Sqrt(areaweights[aidx])) << endl;
                     
       apix.SetPheFFactorMethod   ( areaphes[aidx] );
@@ -1461,4 +1462,5 @@
           pix.SetPheFFactorMethod   ( apix.GetPheFFactorMethod()    );
           pix.SetPheFFactorMethodVar( apix.GetPheFFactorMethodVar() );
+
           if (!pix.CalcConvFFactor())
             {
@@ -1471,4 +1473,5 @@
                 bad.SetUnsuitable  ( MBadPixelsPix::kUnsuitableRun    );
             }
+
         }
     }
Index: trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.cc
===================================================================
--- trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.cc	(revision 6241)
+++ trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.cc	(revision 6242)
@@ -92,5 +92,5 @@
 //
 MCalibrationRelTimeCalc::MCalibrationRelTimeCalc(const char *name, const char *title)
-    : fGeom(NULL)
+    : fGeom(NULL), fFlags(0)
 {
         
Index: trunk/MagicSoft/Mars/mcalib/MCalibrationTestCam.h
===================================================================
--- trunk/MagicSoft/Mars/mcalib/MCalibrationTestCam.h	(revision 6241)
+++ trunk/MagicSoft/Mars/mcalib/MCalibrationTestCam.h	(revision 6242)
@@ -34,4 +34,6 @@
 	                                            const MGeomCam &cam, Int_t type=0) const;
   
+  void  InitAverageAreas       ( const UInt_t i);
+
   // Prints
   void  Print (Option_t *o="") const;
Index: trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
===================================================================
--- trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc	(revision 6241)
+++ trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc	(revision 6242)
@@ -199,4 +199,5 @@
     {
       TString dat = GetEnv("DataType", "");
+      dat = dat.Strip(TString::kBoth);
       if (dat.BeginsWith("raw", TString::kIgnoreCase))
         {
Index: trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
===================================================================
--- trunk/MagicSoft/Mars/mjobs/MJPedestal.cc	(revision 6241)
+++ trunk/MagicSoft/Mars/mjobs/MJPedestal.cc	(revision 6242)
@@ -62,4 +62,5 @@
 #include "MExtractor.h"
 #include "MExtractTimeAndCharge.h"
+#include "MFEventSelector.h"
 
 // parameter containers
@@ -955,4 +956,14 @@
     }
 
+    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
@@ -1108,4 +1119,7 @@
         DisplayResult(plist);
 
+    if (fExtractionType!=kFundamental)
+      fExtractor->SetFilter(0);
+
     if (!WriteResult())
         return kFALSE;
