Changeset 7130 for trunk/MagicSoft/Mars/mdata
- Timestamp:
- 06/03/05 18:02:36 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mdata
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mdata/MDataArray.cc
r5692 r7130 51 51 // -------------------------------------------------------------------------- 52 52 // 53 // Constructor53 // Default Constructor 54 54 // 55 55 MDataArray::MDataArray(const char *name, const char *title) … … 60 60 gROOT->GetListOfCleanups()->Add(&fList); 61 61 fList.SetBit(kMustCleanup); 62 } 63 64 // -------------------------------------------------------------------------- 65 // 66 // Copy Constructor 67 // 68 MDataArray::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()); 62 80 } 63 81 -
trunk/MagicSoft/Mars/mdata/MDataArray.h
r5692 r7130 28 28 public: 29 29 MDataArray(const char *name=NULL, const char *title=NULL); 30 MDataArray(MDataArray &a, const char *name=NULL, const char *title=NULL); 30 31 31 32 void AddEntry(const TString rule);
Note:
See TracChangeset
for help on using the changeset viewer.