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 Received on Mon Mar 28 2005 - 16:59:38 MEST
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:06 MET