Changeset 8284 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
02/01/07 14:42:02 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MStatusArray.cc

    r8283 r8284  
    260260            SetCanDelete(((TVirtualPad*)o)->GetListOfPrimitives());
    261261        else
    262             o->SetBit(kCanDelete);
     262            o->SetBit(kCanDelete|kMustCleanup);
    263263    }
    264264}
     
    282282    // Make sure that all kCanDelete bits are properly set
    283283    SetCanDelete(this);
     284    SetOwner();
    284285
    285286    return rc;
  • trunk/MagicSoft/Mars/mbase/MStatusArray.h

    r8283 r8284  
    2222public:
    2323    MStatusArray() : TObjArray() { }
     24
    2425    TObject *DisplayIn(Option_t *o=0) const;         // *MENU*
    2526    void     DisplayIn(MStatusDisplay &d, const char *tab=0) const;
  • trunk/MagicSoft/Mars/mhist/MHCamEvent.cc

    r8281 r8284  
    214214}
    215215
     216// --------------------------------------------------------------------------
     217//
     218// Set the camera histogram to a clone of cam
     219//
    216220void MHCamEvent::SetHist(const MHCamera &cam)
    217221{
  • trunk/MagicSoft/Mars/mhist/MHCamera.cc

    r8281 r8284  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MHCamera.cc,v 1.98 2007-02-01 11:24:18 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MHCamera.cc,v 1.99 2007-02-01 14:42:02 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    157157}
    158158
     159// ------------------------------------------------------------------------
     160//
     161// Clone the MHCamera via TH1D::Clone and make sure that the new object is
     162// not removed from the current directory.
     163//
     164TObject *MHCamera::Clone(const char *newname="") const
     165{
     166    TObject *rc = TH1D::Clone(newname);
     167    rc->SetDirectory(NULL);
     168    return rc;
     169}
     170
    159171void MHCamera::SetGeometry(const MGeomCam &geom, const char *name, const char *title)
    160172{
  • trunk/MagicSoft/Mars/mhist/MHCamera.h

    r8281 r8284  
    11/* ======================================================================== *\
    2 !  $Name: not supported by cvs2svn $:$Id: MHCamera.h,v 1.62 2007-02-01 11:24:18 tbretz Exp $
     2!  $Name: not supported by cvs2svn $:$Id: MHCamera.h,v 1.63 2007-02-01 14:42:02 tbretz Exp $
    33\* ======================================================================== */
    44#ifndef MARS_MHCamera
     
    122122    MHCamera(const MGeomCam &geom, const char *name="", const char *title="");
    123123    ~MHCamera();
     124
     125    TObject *Clone(const char *newname="") const;
    124126
    125127    void SetGeometry(const MGeomCam &geom, const char *name="", const char *title="");
Note: See TracChangeset for help on using the changeset viewer.