Index: trunk/Mars/msignal/MExtractFACT.cc
===================================================================
--- trunk/Mars/msignal/MExtractFACT.cc	(revision 17834)
+++ trunk/Mars/msignal/MExtractFACT.cc	(revision 17835)
@@ -150,4 +150,6 @@
         }
 
+        //Float_t max = *pmax;
+
         // -------------------------------------------------------------------------
         // Calculate a parabola through this and the surrounding points
@@ -171,7 +173,7 @@
         if (pmax>pbeg && pmax<pend-1)
         {
-            const double &v1 = pmax[-1];
-            const double &v2 = pmax[0];
-            const double &v3 = pmax[+1];
+            const Float_t &v1 = pmax[-1];
+            const Float_t &v2 = pmax[ 0];
+            const Float_t &v3 = pmax[+1];
             if (v1>0 && v2>0 && v3>0)
             {
@@ -190,5 +192,7 @@
                     if (dx>=-1 && dx<=1)
                     {
-                        max = a + b*dx + c*dx*dx;
+                        max = exp(a + b*dx + c*dx*dx);
+
+                        // Time is position of maximum
                         //time = dx;
                         //time += Int_t(pmax-ptr);
@@ -202,4 +206,6 @@
         {
             // -10: maximum search window
+
+            // Time is position of half hight leading edge
             pend = std::max(pbeg, pmax-10);
             for (;pmax>=pend; pmax--)
