Hi everyone,
I started learning RooFit so this might be a stupid question.
I created a PDF like this:
w.factory("Gaussian::g(x[-10,10],m[-10,10],s[3,0.1,10])");
Then I created a binned dataset like this:
TF1 *gaus = new TF1("gaus","TMath::Gaus(x,1,2.5)",-10,10);
htemp->FillRandom("gaus",10000);
RooDataHist data("data", "Random data",w::x,htemp);
Then I try to fit the PDF to the dataset like this:
RooFitResult *result = w::g.fitTo(data);
But I get a NULL pointer for result. The htmldocs suggest otherwise. I have tried repeating the above without the factory with the same results.
Any ideas as to what could be wrong?
ROOT version: 5.28/00e
PS: I was following the RooFit quick start guide by Wouter.
-- Suvayu Open source is the future. It sets us free.Received on Sat Jul 30 2011 - 14:39:27 CEST
This archive was generated by hypermail 2.2.0 : Sun Jul 31 2011 - 17:50:01 CEST