Ignore:
Timestamp:
05/27/05 18:42:42 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mimage/MHillasSrc.h

    r5080 r7103  
    2222public:
    2323    MHillasSrc(const char *name=NULL, const char *title=NULL);
     24    MHillasSrc(const MHillasSrc &h) { h.Copy(*this); }
     25
     26    void Copy(TObject &o) const
     27    {
     28        MHillasSrc &src = static_cast<MHillasSrc&>(o);
     29        src.fSrcPos = fSrcPos;
     30        src.fAlpha  = fAlpha;
     31        src.fDist   = fDist;
     32        src.fCosDeltaAlpha = fCosDeltaAlpha;
     33        src.fDCA = fDCA;
     34        src.fDCADelta = fDCADelta;
     35    }
    2436
    2537    void SetSrcPos(const MSrcPosCam *pos) { fSrcPos = pos; }
Note: See TracChangeset for help on using the changeset viewer.