Index: trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc
===================================================================
--- trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc	(revision 5827)
+++ trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc	(revision 5828)
@@ -664,8 +664,4 @@
         *fLog << (fRandomCalculation?"":"non-") << "random)" << endl;
     }
-    const Int_t last = fExtractor 
-      ? fExtractWinFirst + (Int_t)(fExtractor->GetHiGainLast()-fExtractor->GetHiGainFirst()) 
-      : fExtractWinLast;
-
-    *fLog << "ExtractWindow from slice " << fExtractWinFirst << " to " << last << " incl." << endl;
-}
+
+}
Index: trunk/MagicSoft/Mars/mpedestal/MPedCalcFromLoGain.cc
===================================================================
--- trunk/MagicSoft/Mars/mpedestal/MPedCalcFromLoGain.cc	(revision 5827)
+++ trunk/MagicSoft/Mars/mpedestal/MPedCalcFromLoGain.cc	(revision 5828)
@@ -498,4 +498,9 @@
     MExtractPedestal::Print(o);
 
+    const Int_t last = fExtractor 
+      ? fExtractWinFirst + fExtractor->GetWindowSizeHiGain()
+      : fExtractWinLast;
+
+    *fLog << "ExtractWindow from slice " << fExtractWinFirst << " to " << last << " incl." << endl;
     *fLog << "Max.allowed signal variation: " << fMaxSignalVar << endl;
     *fLog << "CheckWindow from slice " << fCheckWinFirst   << " to " << fCheckWinLast << " incl." << endl;
Index: trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.cc
===================================================================
--- trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.cc	(revision 5827)
+++ trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.cc	(revision 5828)
@@ -433,5 +433,10 @@
     MExtractPedestal::Print(o);
 
-    *fLog << "ExtractWindow from slice      " << fExtractWinFirst << " to " << fExtractWinLast << " incl." << endl;
+    const Int_t last = fExtractor 
+      ? fExtractWinFirst + fExtractor->GetWindowSizeHiGain()
+      : fExtractWinLast;
+
+    *fLog << "ExtractWindow from slice " << fExtractWinFirst << " to " << last << " incl." << endl;
+
     *fLog << "Num overlap lo-gain slices:   " << fOverlap << endl;
     *fLog << "First pedrun out of sequence: " << (fIsFirstPedRun?"yes":"no") << endl;
