'DATA AND CATEGORIES' RooFit tutorial macro #403
Using weights in unbinned datasets
#ifndef __CINT__
#endif
using namespace RooFit ;
void rf403_weightedevts()
{
RooPlot* frame =
x.frame(
Title(
"Unbinned ML fit, binned chi^2 fit to weighted data")) ;
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.