Fitting Demo example

I’ve tried to compile and run the Fitting Demo Example ( … emo.C.html).

My question is : is it supposed to open some window to show us the result of the fit and to plot the histogram ?

Because, it compiled, it run, but it doesn’t show anything except for 1 screen of numbers about the fit results.

Thank you

as said in the subject


Yes it is, and it works well here. You should have some output problem. Does the ?‘Hello World’ example work ?
And I think the ROOT team needs more info about your version to help you.


My sys admin installed ROOT 4.04 in /usr/local/root/
I am using Mandrake Linux, here is my /proc/version
Linux version ( (gcc version 3.4.1 (Mandrakelinux 10.1 3.4.1-4mdk)) #1 Fri Jan 14 03:01:00 MST 200

I tried the Hello World example (, and it opens a window, but this is from the root framework.

The fitting demo example used from a program.

I compiled my program with :
g++ -g src/randomGenerator.o src/experiment.o src/KMExperiment.o src/ParamsReader.o src/StatAnalyzer.o SpeedDistribution.cpp -o SpeedDistribution.out -I/usr/local/root/include/root/ -L/usr/local/root/lib/root/ -lCore -lCint -lGui -lGpad -lHist -lGraf -lMatrix

Thank you for your help

In order to get the graph you need a TApplication object.
See $ROOTSYS/test/hworld.cxx


Thank you, it works with the TApplication