Index: trunk/MagicSoft/Mars/mhbase/MH.cc
===================================================================
--- trunk/MagicSoft/Mars/mhbase/MH.cc	(revision 4991)
+++ trunk/MagicSoft/Mars/mhbase/MH.cc	(revision 4994)
@@ -1181,14 +1181,4 @@
     const Int_t size = array.GetSize();
 
-    TH1I *h1=0;
-
-    //check if histogram with identical name exist
-    TObject *h1obj = gROOT->FindObject(name);
-    if (h1obj && h1obj->InheritsFrom("TH1I"))
-    {
-        h1 = (TH1I*)h1obj;
-        h1->Reset();
-    }
-
     Double_t min = size>0 ? array[0] : 0;
     Double_t max = size>0 ? array[0] : 1;
@@ -1203,12 +1193,9 @@
     Int_t newbins = 0;
     FindGoodLimits(nbins, newbins, min, max, kFALSE);
-
-    if (!h1)
-    {
-        h1 = new TH1I(name, title, nbins, min, max);
-        h1->SetXTitle("");
-        h1->SetYTitle("Counts");
-        h1->SetDirectory(gROOT);
-    }
+    
+    TH1I *h1 = new TH1I(name, title, nbins, min, max);
+    h1->SetXTitle("");
+    h1->SetYTitle("Counts");
+    h1->SetDirectory(NULL);
 
     // Second loop to fill the histogram
@@ -1226,13 +1213,4 @@
 {
     const Int_t size = array.GetSize();
-    TH1I *h1=0;
-
-    //check if histogram with identical name exist
-    TObject *h1obj = gROOT->FindObject(name);
-    if (h1obj && h1obj->InheritsFrom("TH1I"))
-    {
-        h1 = (TH1I*)h1obj;
-        h1->Reset();
-    }
 
     Double_t min = size>0 ? array[0] : 0;
@@ -1249,11 +1227,8 @@
     FindGoodLimits(nbins, newbins, min, max, kFALSE);
 
-    if (!h1)
-    {
-        h1 = new TH1I(name, title, newbins, min, max);
-        h1->SetXTitle("");
-        h1->SetYTitle("Counts");
-        h1->SetDirectory(gROOT);
-    }
+    TH1I *h1 = new TH1I(name, title, newbins, min, max);
+    h1->SetXTitle("");
+    h1->SetYTitle("Counts");
+    h1->SetDirectory(NULL);
 
     // Second loop to fill the histogram
