Re: array of histogram in root

From: Marc Escalier <escalier_at_lal.in2p3.fr>
Date: Mon, 13 Jun 2011 17:11:55 +0200


thanks

actually i need to use a "TList" to add the different objects, due to the usage of TSelector, which has the "fOutput" which is a TList.

>From a TList, may i add TObjArray ?

from Add(...) or another method ?

thanks




On Mon, 13 Jun 2011, Philippe Canal wrote:

> Hi,
>
> You would need to use a TObjArray instead of an array.
>
> Cheers,
> philippe.
>
> On 6/13/11 8:42 AM, Marc Escalier wrote:
>> Dear rooters,
>>
>> would you have an idea on how to store an array of histograms in a TList
>>
>> i mean, from a given
>> TH1F *tab_histo[3]
>> and
>> TList mylist
>>
>> i wish to do :
>> mylist.Add(tab_histo);
>>
>> the only thing i found is :
>>
>> mylist.Add(tab_histo[0]);
>> mylist.Add(tab_histo[1]);
>> etc...
>> (or in a loop)
>>
>> while my goal is really to store the "array" of the histograms
>>
>> thanks
>>
>
Received on Mon Jun 13 2011 - 17:12:01 CEST

This archive was generated by hypermail 2.2.0 : Tue Jun 14 2011 - 17:50:01 CEST