Index: trunk/MagicSoft/Mars/mhbase/MH3.cc
===================================================================
--- trunk/MagicSoft/Mars/mhbase/MH3.cc	(revision 5300)
+++ trunk/MagicSoft/Mars/mhbase/MH3.cc	(revision 5429)
@@ -166,4 +166,36 @@
 }
 
+MH3::MH3(const TH1 &h1) : fDimension(1)
+{
+    if (h1.InheritsFrom(TH3::Class()))
+        fDimension = 3;
+    if (h1.InheritsFrom(TH2::Class()))
+        fDimension = 2;
+
+    fData[0] = NULL;
+    fData[1] = NULL;
+    fData[2] = NULL;
+
+    switch (fDimension)
+    {
+    case 3:
+        fData[2] = new MDataChain(h1.GetZaxis()->GetTitle());
+    case 2:
+        fData[1] = new MDataChain(h1.GetYaxis()->GetTitle());
+    case 1:
+        fData[0] = new MDataChain(h1.GetXaxis()->GetTitle());
+    }
+
+    fName  = gsDefName;
+    fTitle = gsDefTitle;
+
+    fHist = (TH1*)h1.Clone();
+    fHist->SetDirectory(NULL);
+
+    fScale[0] = 1;
+    fScale[1] = 1;
+    fScale[2] = 1;
+}
+
 // --------------------------------------------------------------------------
 //
Index: trunk/MagicSoft/Mars/mhbase/MH3.h
===================================================================
--- trunk/MagicSoft/Mars/mhbase/MH3.h	(revision 5300)
+++ trunk/MagicSoft/Mars/mhbase/MH3.h	(revision 5429)
@@ -39,4 +39,5 @@
 public:
     MH3(const unsigned int dim=0);
+    MH3(const TH1 &h1);
     MH3(const char *memberx);
     MH3(const char *memberx, const char *membery);
