Hi guys,
at some point in my code I want to fit several TH1Is:
TF1 *fit = new TF1(name.c_str(), "gaus" , -5 , 5 );
fit->SetParameter(1, 0);
PointerToHist->Fit(fit, "RQO");
Although I specify the Option “O” (Is it the letter or zero? Both did not work.), I get the info:
Info in TCanvas::MakeDefCanvas: created default TCanvas with name c1
and a Canvas is opened. I don’t want it to be drawn, I just want to fit? What am I doing wrong?
I want to keep the fit and the graphical info to draw the histograms at a later time though.
I’m linking against root v6-04-02 and compiling with gcc 4.84 on Ubuntu 14.04.
Thx,