30void rf403_weightedevts()
100 RooPlot *frame =
x.frame(
Title(
"Unbinned ML fit, binned chi^2 fit to weighted data"));
129 binnedData->
Print(
"v");
152 cout <<
"==> ML Fit results on 1K unweighted events" << endl;
154 cout <<
"==> ML Fit results on 43K unweighted events" << endl;
156 cout <<
"==> ML Fit results on 1K weighted events with a summed weight of 43K" << endl;
158 cout <<
"==> Corrected ML Fit results on 1K weighted events with a summed weight of 43K" << endl;
159 r_ml_wgt_corr->
Print();
160 cout <<
"==> Chi2 Fit results on 1K weighted events with a summed weight of 43K" << endl;
163 new TCanvas(
"rf403_weightedevts",
"rf403_weightedevts", 600, 600);
164 gPad->SetLeftMargin(0.15);
virtual void Print(Option_t *options=0) const
Print TNamed name and title.
RooArgList is a container object that can hold multiple RooAbsArg objects.
Class RooChi2Var implements a simple chi^2 calculation from a binned dataset and a PDF.
The RooDataHist is a container class to hold N-dimensional binned data.
RooDataSet is a container class to hold unbinned data.
virtual const RooArgSet * get(Int_t index) const override
Return RooArgSet with coordinates of event 'index'.
virtual RooAbsArg * addColumn(RooAbsArg &var, Bool_t adjustRange=kTRUE)
Add a column with the values of the given (function) argument to this dataset.
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 variable that can be changed from the outside.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
virtual const char * GetTitle() const
Returns title of object.
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)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...