May 20, 2004
Sample 1 of RooFit::[Misc]


root [1] RooRealVar x("x", "x", -10,10 );
root [2] RooRealVar mean("mean", "mean of Gauss", 0, -10,10 );
root [3] RooRealVar sigma("sigma", "width of gaussian", 3);
root [4] RooGaussian gauss("gauss", "Gaussian PDF", x,mean, sigma );
Error: Function RooGaussiangauss("gauss","Gaussian PDF",x,mean,sigma) is not defined in current scope FILE:(tmpfile) LINE:1
Possible candidates are...
filename line:size busy function type and name
*** Interpreter error recovered ***
root [5] gSystem->Load("libRooFitModels.so") ;
root [6] RooGaussian gauss("gauss", "Gaussian PDF", x,mean, sigma );
root [7] RooPlot* xframe = x.frame();
root [8] gauss.plotOn(xframe);
root [9] xframe->Draw();
root [10] Info in
root [13] RooDataSet* data=gauss.generate(x,10000);
root [14] gauss.fitTo(*data);
root [15] RooPlot* xframe2 = x.frame();
root [16] data->plotOn(xframe2);
root [17] gauss.plotOn(xframe2,"L");
root [18] xframe2->Draw();
root [19] Info in
Trackback
You can ping this entry by using http://www.wespoke.com/cgi-bin/mt/mt-tb.cgi/468
