Index: trunk/MagicSoft/Mars/manalysis/MHPedestalCam.cc
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MHPedestalCam.cc	(revision 3927)
+++ trunk/MagicSoft/Mars/manalysis/MHPedestalCam.cc	(revision 4277)
@@ -111,4 +111,6 @@
 #include "MCalibrationPedCam.h"
 
+#include "TH1.h"
+
 ClassImp(MHPedestalCam);
 
@@ -121,4 +123,5 @@
 // - fExtractHiGainSlices to 0.
 // - fExtractLoGainSlices to 0.
+// - the event frequency to 1200 Hz.
 //
 MHPedestalCam::MHPedestalCam(const char *name, const char *title) 
@@ -128,4 +131,5 @@
     fTitle = title ? title : "";
 
+    SetPulserFrequency(1200);
 }
 
@@ -267,8 +271,9 @@
                                       "Average Pedestals area idx ");
 
-        InitPedHists((MHPedestalPix&)GetAverageHiGainArea(j),j,fExtractHiGainSlices);
-
         GetAverageHiGainArea(j).GetHGausHist()->SetTitle("Pedestals average Area Idx ");
         GetAverageHiGainArea(j).SetNbins(fAverageNbins);
+
+        InitPedHists((MHPedestalPix&)GetAverageHiGainArea(j),j,fExtractHiGainSlices);
+
       }
   }
@@ -284,8 +289,9 @@
                                       "Pedestals average Area idx ");
 
-        InitPedHists((MHPedestalPix&)GetAverageLoGainArea(j),j,fExtractLoGainSlices);
-
         GetAverageLoGainArea(j).GetHGausHist()->SetTitle("Pedestals average Area Idx ");
         GetAverageLoGainArea(j).SetNbins(fAverageNbins);
+
+        InitPedHists((MHPedestalPix&)GetAverageLoGainArea(j),j,fExtractLoGainSlices);
+
       }
   }
@@ -301,8 +307,9 @@
                                         "Pedestals average sector ");
 
-          InitPedHists((MHPedestalPix&)GetAverageHiGainSector(j),j,fExtractHiGainSlices);
-
           GetAverageHiGainSector(j).GetHGausHist()->SetTitle("Pedestals average Sector ");
           GetAverageHiGainSector(j).SetNbins(fAverageNbins);
+
+          InitPedHists((MHPedestalPix&)GetAverageHiGainSector(j),j,fExtractHiGainSlices);
+
       }
   }
@@ -318,8 +325,9 @@
                                         "Pedestals average sector ");
 
+          GetAverageLoGainSector(j).GetHGausHist()->SetTitle("Pedestals average Sector ");
+          GetAverageLoGainSector(j).SetNbins(fAverageNbins);
+
           InitPedHists((MHPedestalPix&)GetAverageLoGainSector(j),j,fExtractLoGainSlices);
           
-          GetAverageLoGainSector(j).GetHGausHist()->SetTitle("Pedestals average Sector ");
-          GetAverageLoGainSector(j).SetNbins(fAverageNbins);
       }
   }
@@ -347,8 +355,8 @@
   hist.SetNSlices(nslices);
   hist.SetProbLimit(0.);
-}
-
-
-
+
+  TH1F *h = hist.GetHGausHist();
+  h->SetTitle( Form("%s%s", h->GetTitle()," Runs: "));
+}
 // -------------------------------------------------------------------------------
 //
Index: trunk/MagicSoft/Mars/manalysis/MHPedestalPix.cc
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MHPedestalPix.cc	(revision 3927)
+++ trunk/MagicSoft/Mars/manalysis/MHPedestalPix.cc	(revision 4277)
@@ -71,4 +71,5 @@
 // Initializes:
 // - fNSlices to 1
+// - fProbLimit to 0.01
 //
 MHPedestalPix::MHPedestalPix(const char *name, const char *title) 
@@ -82,4 +83,6 @@
   SetFirst( fgChargeFirst );
   SetLast(  fgChargeLast  );
+
+  SetProbLimit(0.01);
 
   // Create a large number of bins, later we will rebin
@@ -111,5 +114,5 @@
   if (fNSlices <= 0)
     return;
-  
+
   const Float_t sqslices = TMath::Sqrt(fNSlices);
 
