File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 2727#include " TH3.h"
2828#include " THn.h"
2929#include " THnSparse.h"
30- #include " TList .h"
30+ #include " TFolder .h"
3131
3232#include < string>
3333#include < variant>
@@ -295,17 +295,17 @@ class HistogramRegistry
295295 taskHash = hash;
296296 }
297297
298- TList * operator *()
298+ TFolder * operator *()
299299 {
300- TList* list = new TList ();
301- list->SetName (this ->name .c_str ());
300+ TFolder* folder = new TFolder (this ->name .c_str (), this ->name .c_str ());
302301 for (auto j = 0u ; j < MAX_REGISTRY_SIZE; ++j) {
303302 if (mRegistryValue [j].get () != nullptr ) {
304303 auto hist = mRegistryValue [j].get ();
305- list ->Add (hist);
304+ folder ->Add (hist);
306305 }
307306 }
308- return list;
307+ folder->SetOwner ();
308+ return folder;
309309 }
310310
311311 // / lookup distance counter for benchmarking
Original file line number Diff line number Diff line change @@ -181,8 +181,7 @@ struct OutputManager<HistogramRegistry> {
181181
182182 static bool postRun (EndOfStreamContext& context, HistogramRegistry& what)
183183 {
184- TList* list = *what;
185- context.outputs ().snapshot (what.ref (), *list);
184+ context.outputs ().snapshot (what.ref (), *(*what));
186185 return true ;
187186 }
188187};
You can’t perform that action at this time.
0 commit comments