Changeset 19760 for trunk/Mars/mbase
- Timestamp:
- 10/11/19 19:22:02 (5 years ago)
- Location:
- trunk/Mars/mbase
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mbase/MEvtLoop.cc
r19359 r19760 79 79 #include <TDatime.h> // TDatime 80 80 #include <TSystem.h> // gSystem 81 #include <THashList.h> 81 82 #include <TStopwatch.h> 82 83 #include <TGProgressBar.h> … … 123 124 fParList = 0; 124 125 } 126 } 127 128 void MEvtLoop::SetName(const char *name) 129 { 130 MParContainer::SetName(name); 131 132 // From the documentation of THashList::THashList 133 // 134 // WARNING !!! 135 // If the name of an object in the HashList is modified, The hashlist 136 // must be Rehashed 137 // 138 auto table = dynamic_cast<THashList*>(gROOT->GetListOfCleanups()); 139 if (table) 140 table->Rehash(THashList::kInitHashTableCapacity); 125 141 } 126 142 -
trunk/Mars/mbase/MEvtLoop.h
r14449 r19760 51 51 virtual ~MEvtLoop(); 52 52 53 void SetName(const char *name); 54 53 55 void SetParList(MParList *p); 54 56 MParList *GetParList() const { return fParList; } -
trunk/Mars/mbase/MStatusArray.cc
r14888 r19760 52 52 #include <TPaveText.h> // For the TPaveText workaround 53 53 54 #include <THashList.h> 55 54 56 #include "MLog.h" 55 57 #include "MLogManip.h" … … 78 80 static void *ptr = 0; 79 81 #endif 82 83 void MStatusArray::SetName(const char *name) 84 { 85 TObjArray::SetName(name); 86 87 // From the documentation of THashList::THashList 88 // 89 // WARNING !!! 90 // If the name of an object in the HashList is modified, The hashlist 91 // must be Rehashed 92 // 93 auto table = dynamic_cast<THashList*>(gROOT->GetListOfCleanups()); 94 if (table) 95 table->Rehash(THashList::kInitHashTableCapacity); 96 } 80 97 81 98 // -------------------------------------------------------------------------- -
trunk/Mars/mbase/MStatusArray.h
r9580 r19760 33 33 MStatusArray(const MStatusDisplay &d); 34 34 ~MStatusArray(); 35 36 void SetName(const char *name); 35 37 36 38 TObject *DisplayIn(Option_t *o=0) const; // *MENU*
Note:
See TracChangeset
for help on using the changeset viewer.