Re: TProfile nan bins.

From: Lorenzo Moneta <Lorenzo.Moneta_at_cern.ch>
Date: Wed, 9 Mar 2011 09:19:12 +0100


Hi,

 Can you please send me a macro reproducing this problem ? Thank you

 Lorenzo
On Mar 1, 2011, at 5:07 PM, BetterWang wrote:

> Hi ROOT experts,
>
> I am filling TH2D and TProfile at the same time.
> They have the same definition, for example:
>
> TH2D *h2 = new TH2D("h2", h2", 220, -1.1, 1.1, 220, -1.1, 1.1);
> TProfile *h2p = new TProfile("h2p", "h2p", 220, -1.1, 1.1, -1.1, 1.1);
>
> After filling lots of data.
> h2 looks fine, but h2p has some bins with content "NaN".
> h2->ProfileX() can give a profile without any problem.
> Does anyone know what is going on under the hood?
> And how can I avoid "NaN" in a TProfile?
>
> Thanks,
>
Received on Wed Mar 09 2011 - 09:19:16 CET

This archive was generated by hypermail 2.2.0 : Fri Mar 11 2011 - 05:50:01 CET