'DATA AND CATEGORIES' RooFit tutorial macro #403
Using weights in unbinned datasets
Processing /mnt/build/workspace/root-makedoc-v608/rootspi/rdoc/src/v6-08-00-patches/tutorials/roofit/rf403_weightedevts.C...
void rf403_weightedevts()
{
x.setBins(40) ;
RooPlot* frame = x.frame(
Title(
"Unbinned ML fit, binned chi^2 fit to weighted data")) ;
p2.plotOn(frame) ;
m.migrad() ;
m.hesse() ;
cout << "==> ML Fit results on 1K unweighted events" << endl ;
cout << "==> ML Fit results on 43K unweighted events" << endl ;
cout << "==> ML Fit results on 1K weighted events with a summed weight of 43K" << endl ;
cout << "==> Corrected ML Fit results on 1K weighted events with a summed weight of 43K" << endl ;
cout << "==> Chi2 Fit results on 1K weighted events with a summed weight of 43K" << endl ;
new TCanvas(
"rf403_weightedevts",
"rf403_weightedevts",600,600) ;
}
- Author
- 07/2008 - Wouter Verkerke
Definition in file rf403_weightedevts.C.