Re: Filling Profile hist

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Thu, 14 May 2009 06:42:38 +0200


You are filling your profile histogram with NaN values. Check the value of your variables uv, u2v2, etc.

Rene Brun

navneet kumar wrote:
> Dear rooters,
> I am trying to fill some Profile histogrammes, as below,
> huv->Fill(0.5,uv);
> hu2v2->Fill(0.5,u2v2);
> huuv2->Fill(0.5,uuv2);
> huuvv->Fill(0.5,uuvv);
>
> But when i open my root file to draw the histogramme, it gives me
> blank canvas and some warnings :
> ---------------------------------------------------------
> root [1] huv->Draw()
> <TCanvas::MakeDefCanvas>: created default TCanvas with name c1
> Warning in <TCanvas::ResizePad>: Inf/NaN propagated to the pad. Check
> drawn objects.
> Warning in <TCanvas::ResizePad>: c1 height changed from 0 to 10
>
> root [2] Warning in <TCanvas::ResizePad>: Inf/NaN propagated to the
> pad. Check drawn objects.
> Warning in <TCanvas::ResizePad>: c1 height changed from 0 to 10
>
> Warning in <TCanvas::ResizePad>: Inf/NaN propagated to the pad. Check
> drawn objects.
> Warning in <TCanvas::ResizePad>: c1 height changed from 0 to 10
> ---------------------------------------------------------
>
> I couldn't understand these warnings, i think this is the reason for
> blank canvas.
>
> Can anybody help me to understand, what is wrong?
>
> Thanks
> Best Regards
> Navneet
>
>
>
>
> --
> =================================
> || \\ / // Navneet K. Pruthi
> || |\ \\ | || Dept. of Physics
> || | \ \\ | || Panjab University
> || | \ \\ || Chandigarh-160014
> // / \ || Phone #91-98722-18896
> #91-98550-63200
> email: nav_at_rcf.rhic.bnl.gov <mailto:nav_at_rcf.rhic.bnl.gov>
> ===================================
Received on Thu May 14 2009 - 06:43:09 CEST

This archive was generated by hypermail 2.2.0 : Thu May 14 2009 - 11:50:01 CEST