Hello,
I’ve tried to compile and run the Fitting Demo Example (root.cern.ch/root/html/examples/ … 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
Hi,
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.
Regards.
Ok,
My sys admin installed ROOT 4.04 in /usr/local/root/
I am using Mandrake Linux, here is my /proc/version
Linux version 2.6.8.1-24mdk (qateam@updates.mandrakesoft.com) (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 (root.cern.ch/root/html/examples/hello.html), 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
Cheers,
Philippe.
Thank you, it works with the TApplication