Re: Problem saving nested collections

From: Corey Reed <cjreed_at_nikhef.nl>
Date: Tue, 1 Mar 2011 14:01:16 +0100


Hi,

I should note that this only seems to be a problem with TClonesArray.

Changing the macro to use TObjArray instead leads to the expected behavior, as demonstrated by the attached macro.

Corey Reed wrote:
> Hi,
>
> I have a large collection of histograms that I want to keep organized.
> For this purpose, I tried using nested collections, with the histograms
> being several layers deep. (It should be a convenient way to keep 1D
> histograms organized in bins of multiple variables that aren't directly
> plotted.)
>
>
> Unfortunately, when I try to save these collections to a file, only the
> top layer is actually saved.
>
> I have attached a simple macro that reproduces the problem.
>
> - Corey
>

Received on Tue Mar 01 2011 - 14:01:20 CET

This archive was generated by hypermail 2.2.0 : Tue Mar 01 2011 - 17:50:01 CET