Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 5743)
+++ trunk/MagicSoft/Mars/Changelog	(revision 5744)
@@ -41,4 +41,7 @@
      - fixed two lines to compile MCalibrateData with the recent changes
        by TB
+
+   * msignal/MExtractTimeAndChargeDigitalFilter.cc
+     - fixed two bugs introduced yesterday by TB.
 
 
Index: trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
===================================================================
--- trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc	(revision 5743)
+++ trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc	(revision 5744)
@@ -292,5 +292,5 @@
   if (IsNoiseCalculation())
     {
-      if (fRandomIter == fBinningResolution)
+      if (fRandomIter == fBinningResolutionHiGain)
         fRandomIter = 0;
       for (Int_t ids=0; ids < fWindowSizeHiGain; ids++)
Index: trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.h
===================================================================
--- trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.h	(revision 5743)
+++ trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.h	(revision 5744)
@@ -50,5 +50,5 @@
   TString fNameWeightsFile;                     //! Name of the weights file
   Bool_t  fWeightsSet;                          //! Flag if weights have alreayd been set
-  UInt_t  fRandomIter;                          //! Counter used to randomize weights for noise calculation
+  Int_t   fRandomIter;                          //! Counter used to randomize weights for noise calculation
 
   Bool_t  InitArrays();
