Index: /trunk/Mars/Changelog
===================================================================
--- /trunk/Mars/Changelog	(revision 10282)
+++ /trunk/Mars/Changelog	(revision 10283)
@@ -47,4 +47,5 @@
    * mhbase/MH3.cc:
      - fixed a problem with a wrong cast
+     - added assignment of conversion function for TProfile3D
 
 
Index: /trunk/Mars/mhbase/MH3.cc
===================================================================
--- /trunk/Mars/mhbase/MH3.cc	(revision 10282)
+++ /trunk/Mars/mhbase/MH3.cc	(revision 10283)
@@ -970,5 +970,5 @@
 void MH3::Convert(TH1 &h) const
 {
-    const Bool_t prof = h.InheritsFrom(TProfile::Class()) || h.InheritsFrom(TProfile2D::Class());
+    const Bool_t prof = h.InheritsFrom(TProfile::Class()) || h.InheritsFrom(TProfile2D::Class()) || h.InheritsFrom(TProfile3D::Class());
 
     for (Int_t z=0; z<=h.GetNbinsZ()+1; z++)
@@ -994,4 +994,9 @@
         for (Int_t i=0; i<p2->GetSize(); i++)
             static_cast<TProfile2D&>(h).SetBinEntries(i, p2->GetBinEntries(i)>0 ? 1 : 0);
+
+    TProfile3D *p3 = dynamic_cast<TProfile3D*>(fHist);
+    if (p3)
+        for (Int_t i=0; i<p3->GetSize(); i++)
+            static_cast<TProfile3D&>(h).SetBinEntries(i, p3->GetBinEntries(i)>0 ? 1 : 0);
 }
 
