Re: TH1D from TH2D's

From: Alberto Pulvirenti <alberto.pulvirenti_at_ct.infn.it>
Date: Mon, 23 Feb 2009 16:54:45 +0100


Hi, this would be very nice, but unfortunately I think I will not be allowed to do this, due to some restrictions, so I must rely on TH2D's. The suggestion from Mario, using ProjectionX/Y is OK for my purposes. If I will be allowed to use TTrees, this will be the best solution, anyway.

Thanks, best regards.

    Alberto

Philippe Canal wrote:
> Hi Alberto,
>
> It sounds like you need to store your data in a TTree and extract the
> histogram on demand.
>
> Cheers,
> Philippe.
>
> Alberto Pulvirenti wrote:
>> Dear all,
>>
>> I am doing an analysis job where I create the same 1D histogram for
>> several bins of a reference variable. I was wandering if it is
>> possible to do this with a TH2D, instead, but I should have the
>> possibility to take a single "row" of such TH2D to retrieve the
>> corresponding TH1D with only the entries in that row, because I think
>> that this is less memory demanding, and it could allow to have a very
>> large number of bins in both dimensions of the histogram, which would
>> be of great advantage to me.
>>
>> Is this possible in an automatic way?
>>
>> Hope that the question is clear.
>>
>> Thanks, cheers
>>
>> Alberto
>>
Received on Mon Feb 23 2009 - 16:53:32 CET

This archive was generated by hypermail 2.2.0 : Tue Feb 24 2009 - 11:50:02 CET