Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 8304)
+++ trunk/MagicSoft/Mars/Changelog	(revision 8305)
@@ -71,4 +71,6 @@
      - if necessary increased class version
 
+   * mpedestal/MExtractPedestal.cc:
+     - improved output
 
 
Index: trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc
===================================================================
--- trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc	(revision 8304)
+++ trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc	(revision 8305)
@@ -1,4 +1,4 @@
 /* ======================================================================== *\
-! $Name: not supported by cvs2svn $:$Id: MExtractPedestal.cc,v 1.25 2007-02-03 20:03:35 tbretz Exp $
+! $Name: not supported by cvs2svn $:$Id: MExtractPedestal.cc,v 1.26 2007-02-04 15:49:08 tbretz Exp $
 ! --------------------------------------------------------------------------
 !
@@ -318,4 +318,8 @@
 void MExtractPedestal::CheckExtractionWindow(UInt_t offset)
 {
+    *fLog << inf;
+    *fLog << "Requested CheckWindow is [" << fCheckWinFirst << "," << fCheckWinLast << "]." <<endl;
+    *fLog << "Requested ExtractWindow is [" << fExtractWinFirst+offset << "," << fExtractWinLast+offset << "]." <<endl;
+
     // fSignal->GetNumSamples() not yet initialized!!!
     const UInt_t num = fRunHeader->GetNumSamplesHiGain()+fRunHeader->GetNumSamplesLoGain();
@@ -323,6 +327,5 @@
     if (fCheckWinLast >= num)
     {
-        *fLog << inf;
-        *fLog << "CheckWindow [" << fCheckWinFirst+offset << "," << fCheckWinLast+offset;
+        *fLog << "CheckWindow [" << fCheckWinFirst << "," << fCheckWinLast;
         *fLog << "] out of range [0," << num-1 << "]... ";
         *fLog << "reset upper edge." << endl;
@@ -333,5 +336,4 @@
     if (offset+fExtractWinLast >= num)
     {
-        *fLog << inf;
         *fLog << "ExtractWindow [" << fExtractWinFirst+offset << "," << fExtractWinLast+offset;
         *fLog << "] out of range [0," << num-1 << "]... ";
@@ -348,5 +350,4 @@
     fExtractWinLast += offset+fExtractWinLast==num-1 ? -1 : +1;
 
-    *fLog << inf;
     *fLog << "ExtractionWindow odd... set to [";
     *fLog << fExtractWinFirst+offset << "," << fExtractWinLast+offset << "]" << endl;
@@ -564,5 +565,6 @@
         {
             *fLog << err << GetDescriptor();
-            *fLog << " - ERROR: Selected fExtractWinLast out of range." << endl;
+            *fLog << " - ERROR: Selected fExtractWinLast " << fExtractWinLast;
+            *fLog << " out of range (>=" << num<< ")." << endl;
             return kFALSE;
         }
@@ -608,4 +610,5 @@
 
     // If the maximum in the high gain window is smaller than
+    // FIXME: Precompiled value!
     return max-min<fMaxSignalVar && max<250;
 }
