Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 5792)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 5793)
@@ -51,4 +51,7 @@
      - take fNameWeightsFile into the streamer, otherwise the Clone() 
        will always create an extractor with cosmic's weights. 
+     - set fOffsetLoGain to a slighly higher value. The DF seems to 
+       have a different offset since it uses different pulse shapes 
+       and thus sightly different time definitions.
 
 
Index: /trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
===================================================================
--- /trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc	(revision 5792)
+++ /trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc	(revision 5793)
@@ -79,4 +79,5 @@
 const Int_t  MExtractTimeAndChargeDigitalFilter::fgSignalStartBinLoGain    =  4;
 const TString MExtractTimeAndChargeDigitalFilter::fgNameWeightsFile        = "msignal/cosmics_weights.dat";
+const Float_t MExtractTimeAndChargeDigitalFilter::fgOffsetLoGain           = 1.8;   // 5 ns
 // --------------------------------------------------------------------------
 //
@@ -102,4 +103,5 @@
 
     SetNameWeightsFile();
+    SetOffsetLoGain(fgOffsetLoGain);
 }
 
@@ -199,5 +201,5 @@
 
   fTimeShiftHiGain = (Float_t)fHiGainFirst + 0.5 + 1./fBinningResolutionHiGain;
-  fTimeShiftLoGain = (Float_t)fLoGainFirst + 0.5 + 1./fBinningResolutionLoGain;
+  fTimeShiftLoGain = 0.5 + 1./fBinningResolutionLoGain;
   // 
   // We need here the effective number of samples which is about 2.5 in the case of a window
@@ -209,4 +211,6 @@
   fSqrtLoGainSamples = TMath::Sqrt(fNumLoGainSamples);
   
+  Print("weights");
+
   return kTRUE;
 }
@@ -539,5 +543,5 @@
       return;
 
-  time = max_p + fTimeShiftLoGain /* this shifts the time to the start of the rising edge */
+  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;
 }
Index: /trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.h
===================================================================
--- /trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.h	(revision 5792)
+++ /trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.h	(revision 5793)
@@ -32,5 +32,6 @@
   static const Int_t  fgSignalStartBinLoGain;    //! Default for fSignalStartBinLoGain (now set to: 4)
   static const TString fgNameWeightsFile;        //! "cosmics_weights.dat"
-
+  static const Float_t fgOffsetLoGain;           //! Default for fOffsetLoGain (now set to 1.8)
+  
   MArrayF fHiGainSignal;                        //! Need fast access to the signals in a float way
   MArrayF fLoGainSignal;                        //! Store them in separate arrays
