Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 5823)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 5824)
@@ -54,4 +54,7 @@
        different from 0.
 
+   * mpedestal/MExtractPedestal.cc
+     - fix the output of the print to the correct value for the case 
+       that the extractor is used.
 
 
Index: /trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc
===================================================================
--- /trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc	(revision 5823)
+++ /trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc	(revision 5824)
@@ -664,4 +664,8 @@
         *fLog << (fRandomCalculation?"":"non-") << "random)" << endl;
     }
-    *fLog << "ExtractWindow from slice " << fExtractWinFirst << " to " << fExtractWinLast << " incl." << endl;
-}
+    const Int_t last = fExtractor 
+      ? fExtractWinFirst + (Int_t)(fExtractor->GetHiGainLast()-fExtractor->GetHiGainFirst()) 
+      : fExtractWinLast;
+
+    *fLog << "ExtractWindow from slice " << fExtractWinFirst << " to " << last << " incl." << endl;
+}
