Re: Problem in macro file

From: Olivier Couet <couet_at_mail.cern.ch>
Date: Tue, 29 Mar 2005 10:20:03 +0200 (CEST)

Hello,

I don't see this problem. See the attached PS file. I am using ROOT 4.03/03 on linux.

Cheers, Olivier

On Mon, 28 Mar 2005, Sébastien Gadrat wrote:

> Hi rooters,
>
> I saved some plots in macro files (.C). On some of these plots, there is some
> fits. The fit results, in the macro file, is hardly written via a TPaveStats.
> Each parameter and its corresponding error is then added with an AddText
> method. Everything looks fine until now but when I run this macro, I get some
> strange Chi2/ndf value, actually, only the Chi2 is ok. Usually, the ndf is a
> negative number.
>
> As an example, I have this TPaveStats in one macro:
>
> TPaveStats *ptstats = new TPaveStats(0.62,0.47,0.98,0.995,"brNDC");
> TText *text = ptstats->AddText("Entries = 40375 ");
> text = ptstats->AddText("Mean = 3.028");
> text = ptstats->AddText("RMS = 1.634");
> text = ptstats->AddText("Integral = 4e+04");
> text = ptstats->AddText("#chi^{2} / ndf = 114.6 / 109");
> text = ptstats->AddText("Prob = 0.3374");
>
> When I run the macro, the Chi2/ndf become 114.6/-2 !!!! Why do I have this
> minus 2 instead of 109 ???
>
> Thanks in advance,
>
> Sebastien
>
>

-- 
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910      
E-Mail: Olivier.Couet_at_cern.ch                            Phone:   +41 22 7676522
WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22 7670300

  • APPLICATION/postscript attachment: c1.ps
Received on Tue Mar 29 2005 - 10:20:09 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:06 MET