31void rf403_weightedevts()
107 RooPlot* frame =
x.frame(
Title(
"Unbinned ML fit, binned chi^2 fit to weighted data")) ;
139 binnedData->
Print(
"v") ;
164 cout <<
"==> ML Fit results on 1K unweighted events" << endl ;
165 r_ml_unw10->
Print() ;
166 cout <<
"==> ML Fit results on 43K unweighted events" << endl ;
167 r_ml_unw43->
Print() ;
168 cout <<
"==> ML Fit results on 1K weighted events with a summed weight of 43K" << endl ;
170 cout <<
"==> Corrected ML Fit results on 1K weighted events with a summed weight of 43K" << endl ;
171 r_ml_wgt_corr->
Print() ;
172 cout <<
"==> Chi2 Fit results on 1K weighted events with a summed weight of 43K" << endl ;
173 r_chi2_wgt->
Print() ;
176 new TCanvas(
"rf403_weightedevts",
"rf403_weightedevts",600,600) ;
static double p2(double t, double a, double b, double c)
virtual void Print(Option_t *options=0) const
Print TNamed name and title.
RooDataSet is a container class to hold N-dimensional binned data.
RooDataSet is a container class to hold unbinned data.
RooFitResult is a container class to hold the input and output of a PDF fit to a dataset.
virtual void Print(Option_t *options=0) const
Print TNamed name and title.
RooGenericPdf is a concrete implementation of a probability density function, which takes a RooArgLis...
RooMinimizer is a wrapper class around ROOT::Fit:Fitter that provides a seamless interface between th...
A RooPlot is a plot frame and a container for graphics objects within that frame.
virtual void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.
RooPolynomial implements a polynomial p.d.f of the form.
RooRealVar represents a fundamental (non-derived) real valued object.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title Offset is a correction factor with respect to the "s...
virtual const char * GetName() const
Returns name of object.
RooCmdArg SumW2Error(Bool_t flag)
RooCmdArg Save(Bool_t flag=kTRUE)
RooCmdArg DataError(Int_t)
RooCmdArg LineColor(Color_t color)
RooCmdArg LineStyle(Style_t style)