Ignore:
Timestamp:
06/03/05 18:02:36 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mdata
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mdata/MDataArray.cc

    r5692 r7130  
    5151// --------------------------------------------------------------------------
    5252//
    53 // Constructor
     53// Default Constructor
    5454//
    5555MDataArray::MDataArray(const char *name, const char *title)
     
    6060    gROOT->GetListOfCleanups()->Add(&fList);
    6161    fList.SetBit(kMustCleanup);
     62}
     63
     64// --------------------------------------------------------------------------
     65//
     66// Copy Constructor
     67//
     68MDataArray::MDataArray(MDataArray &a, const char *name, const char *title)
     69{
     70    fName  = name  ? name  : gsDefName.Data();
     71    fTitle = title ? title : gsDefTitle.Data();
     72
     73    gROOT->GetListOfCleanups()->Add(&fList);
     74    fList.SetBit(kMustCleanup);
     75
     76    TIter Next(&a.fList);
     77    MData *data = NULL;
     78    while ((data=(MData*)Next()))
     79        AddEntry(data->GetRule());
    6280}
    6381
  • trunk/MagicSoft/Mars/mdata/MDataArray.h

    r5692 r7130  
    2828public:
    2929    MDataArray(const char *name=NULL, const char *title=NULL);
     30    MDataArray(MDataArray &a, const char *name=NULL, const char *title=NULL);
    3031
    3132    void AddEntry(const TString rule);
Note: See TracChangeset for help on using the changeset viewer.