Index: trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSlidingWindow.cc
===================================================================
--- trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSlidingWindow.cc	(revision 5245)
+++ trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSlidingWindow.cc	(revision 5246)
@@ -27,11 +27,21 @@
 //   MExtractSlidingWindow
 //
-//  Extracts the signal from a sliding window of size fHiGainWindowSize and 
-//  fLoGainWindowSize. The signal is the one which maximizes the integral 
-//  contents. 
-//
-//  Call: SetRange(higainfirst, higainlast, logainfirst, logainlast) 
-//  to modify the ranges in which the window is allowed to move. 
-//  Defaults are: 
+//   Extracts the signal from a sliding window of size fHiGainWindowSize and 
+//   fLoGainWindowSize, respectively. The signal is the one which maximizes 
+//   the clock-noise and pedestal-corrected integral contents.
+//
+//   The amplitude-weighted arrival time is calculated from the window with 
+//   the highest integral using the following formula:
+//
+//   t = sum(s(i) * i) / sum(i) 
+// 
+//   where i denotes the FADC slice index and s(i) the clock-noise and 
+///  pedestal-corrected FADC value at slice index i. The sum runs over the 
+//   extraction window size.
+//
+//   Call: SetRange(higainfirst, higainlast, logainfirst, logainlast) 
+//         to modify the ranges in which the window is allowed to move. 
+//
+//   Defaults are: 
 // 
 //   fHiGainFirst =  fgHiGainFirst =  0 
@@ -41,11 +51,11 @@
 //
 //  Call: SetWindowSize(windowhigain, windowlogain) 
-//  to modify the sliding window widths. Windows have to be an even number. 
-//  In case of odd numbers, the window will be modified.
+//        to modify the sliding window widths. Windows have to be an even number. 
+//        Odd numbers are possible since the clock-noise is corrected for.
 //
 //  Defaults are:
 //
-//   fHiGainWindowSize = fgHiGainWindowSize = 6
-//   fLoGainWindowSize = fgLoGainWindowSize = 6
+//  fHiGainWindowSize = 6
+//  fLoGainWindowSize = 6
 //
 //////////////////////////////////////////////////////////////////////////////
