Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 6066)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 6067)
@@ -20,4 +20,11 @@
 
                                                  -*-*- END OF LINE -*-*-
+ 2005/01/28 Markus Gaug
+
+   * msignal/MExtractTimeAndChargeDigitalFilter.cc
+     - introduce a security check for the time fine adjustment in case, 
+       it is too large.
+
+
  2005/01/28 Abelardo Moralejo
 
@@ -52,5 +59,4 @@
    * callisto.rc
      - updated conf. file
-
 
 
Index: /trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
===================================================================
--- /trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc	(revision 6066)
+++ /trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc	(revision 6067)
@@ -532,5 +532,11 @@
 
   time = max_p + fTimeShiftLoGain + (Float_t)fLoGainFirst /* this shifts the time to the start of the rising edge */
-      - ((Float_t)t_iter)/fBinningResolutionLoGain - time_sum/sum;
+      - ((Float_t)t_iter)/fBinningResolutionLoGain;
+
+  const Float_t timefineadjust = time_sum/sum;
+  
+  if (timefineadjust < 2./fBinningResolutionLoGain)
+    time -= timefineadjust;
+
 }
 
