Index: /trunk/MagicSoft/Mars/mbase/MStatusArray.cc
===================================================================
--- /trunk/MagicSoft/Mars/mbase/MStatusArray.cc	(revision 8283)
+++ /trunk/MagicSoft/Mars/mbase/MStatusArray.cc	(revision 8284)
@@ -260,5 +260,5 @@
             SetCanDelete(((TVirtualPad*)o)->GetListOfPrimitives());
         else
-            o->SetBit(kCanDelete);
+            o->SetBit(kCanDelete|kMustCleanup);
     }
 }
@@ -282,4 +282,5 @@
     // Make sure that all kCanDelete bits are properly set
     SetCanDelete(this);
+    SetOwner();
 
     return rc;
Index: /trunk/MagicSoft/Mars/mbase/MStatusArray.h
===================================================================
--- /trunk/MagicSoft/Mars/mbase/MStatusArray.h	(revision 8283)
+++ /trunk/MagicSoft/Mars/mbase/MStatusArray.h	(revision 8284)
@@ -22,4 +22,5 @@
 public:
     MStatusArray() : TObjArray() { }
+
     TObject *DisplayIn(Option_t *o=0) const;         // *MENU*
     void     DisplayIn(MStatusDisplay &d, const char *tab=0) const;
Index: /trunk/MagicSoft/Mars/mhist/MHCamEvent.cc
===================================================================
--- /trunk/MagicSoft/Mars/mhist/MHCamEvent.cc	(revision 8283)
+++ /trunk/MagicSoft/Mars/mhist/MHCamEvent.cc	(revision 8284)
@@ -214,4 +214,8 @@
 }
 
+// --------------------------------------------------------------------------
+//
+// Set the camera histogram to a clone of cam
+//
 void MHCamEvent::SetHist(const MHCamera &cam)
 {
Index: /trunk/MagicSoft/Mars/mhist/MHCamera.cc
===================================================================
--- /trunk/MagicSoft/Mars/mhist/MHCamera.cc	(revision 8283)
+++ /trunk/MagicSoft/Mars/mhist/MHCamera.cc	(revision 8284)
@@ -1,4 +1,4 @@
 /* ======================================================================== *\
-! $Name: not supported by cvs2svn $:$Id: MHCamera.cc,v 1.98 2007-02-01 11:24:18 tbretz Exp $
+! $Name: not supported by cvs2svn $:$Id: MHCamera.cc,v 1.99 2007-02-01 14:42:02 tbretz Exp $
 ! --------------------------------------------------------------------------
 !
@@ -157,4 +157,16 @@
 }
 
+// ------------------------------------------------------------------------
+//
+// Clone the MHCamera via TH1D::Clone and make sure that the new object is
+// not removed from the current directory.
+//
+TObject *MHCamera::Clone(const char *newname="") const
+{
+    TObject *rc = TH1D::Clone(newname);
+    rc->SetDirectory(NULL);
+    return rc;
+}
+
 void MHCamera::SetGeometry(const MGeomCam &geom, const char *name, const char *title)
 {
Index: /trunk/MagicSoft/Mars/mhist/MHCamera.h
===================================================================
--- /trunk/MagicSoft/Mars/mhist/MHCamera.h	(revision 8283)
+++ /trunk/MagicSoft/Mars/mhist/MHCamera.h	(revision 8284)
@@ -1,4 +1,4 @@
 /* ======================================================================== *\
-!  $Name: not supported by cvs2svn $:$Id: MHCamera.h,v 1.62 2007-02-01 11:24:18 tbretz Exp $
+!  $Name: not supported by cvs2svn $:$Id: MHCamera.h,v 1.63 2007-02-01 14:42:02 tbretz Exp $
 \* ======================================================================== */
 #ifndef MARS_MHCamera
@@ -122,4 +122,6 @@
     MHCamera(const MGeomCam &geom, const char *name="", const char *title="");
     ~MHCamera();
+
+    TObject *Clone(const char *newname="") const;
 
     void SetGeometry(const MGeomCam &geom, const char *name="", const char *title="");
