Index: trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilterPeakSearch.cc
===================================================================
--- trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilterPeakSearch.cc	(revision 6327)
+++ trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilterPeakSearch.cc	(revision 6328)
@@ -82,6 +82,6 @@
 const Byte_t MExtractTimeAndChargeDigitalFilterPeakSearch::fgOffsetRightFromPeak     =  3;
 const Byte_t MExtractTimeAndChargeDigitalFilterPeakSearch::fgPeakSearchWindowSize    =  2;
-const Int_t  MExtractTimeAndChargeDigitalFilterPeakSearch::fgHiGainFailureLimit      =  5;
-const Int_t  MExtractTimeAndChargeDigitalFilterPeakSearch::fgLoGainFailureLimit      = 10;
+const Int_t  MExtractTimeAndChargeDigitalFilterPeakSearch::fgHiGainFailureLimit      = 10;
+const Int_t  MExtractTimeAndChargeDigitalFilterPeakSearch::fgLoGainFailureLimit      = 15;
 // --------------------------------------------------------------------------
 //
@@ -294,4 +294,5 @@
 
   Byte_t higainfirst     = fHiGainFirst;
+  UInt_t peakpixel       = 0;
 
   while (pixel.Next())
@@ -310,4 +311,5 @@
 	  maxsumhi     = sumhi;
 	  higainfirst  = fHiGainFirst + startslice;
+          peakpixel    = pixel.GetPixelId();
 	}
       else if (sat)
@@ -331,5 +333,5 @@
   else
     {
-      //      *fLog << err << (Int_t)higainfirst << "   " << (int)fHiGainFirst << "  " << (int)fOffsetLeftFromPeak << endl;      
+      //      *fLog << err << (Int_t)higainfirst << "   " << peakpixel << endl;      
       fHiGainOutOfRangeLeft++;
     }
@@ -350,5 +352,5 @@
     {
       fHiGainOutOfRangeRight++;
-      //      *fLog << err << (Int_t)higainfirst << endl;
+      //      *fLog << err << (Int_t)higainfirst << "   " << peakpixel << endl;      
     }
   
