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

Legend:

Unmodified
Added
Removed
  • 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.