76 std::unique_ptr<RooFitResult> r_ml_wgt{p2.fitTo(wdata,
Save(),
PrintLevel(-1))};
118 std::unique_ptr<RooFitResult> r_ml_unw10{p2.fitTo(*data2,
Save(),
PrintLevel(-1))};
119 std::unique_ptr<RooFitResult> r_ml_unw43{p2.fitTo(*data3,
Save(),
PrintLevel(-1))};
126 binnedData->
Print(
"v");
139 std::unique_ptr<RooFitResult> r_chi2_wgt{
m.save()};
149 cout <<
"==> ML Fit results on 1K unweighted events" << endl;
151 cout <<
"==> ML Fit results on 43K unweighted events" << endl;
153 cout <<
"==> ML Fit results on 1K weighted events with a summed weight of 43K" << endl;
155 cout <<
"==> Corrected ML Fit results on 1K weighted events with a summed weight of 43K" << endl;
156 r_ml_wgt_corr->Print();
157 cout <<
"==> Chi2 Fit results on 1K weighted events with a summed weight of 43K" << endl;
160 new TCanvas(
"rf403_weightedevts",
"rf403_weightedevts", 600, 600);
161 gPad->SetLeftMargin(0.15);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
void Print(Option_t *options=nullptr) const override
This method must be overridden when a class wants to print itself.
RooArgList is a container object that can hold multiple RooAbsArg objects.
The RooDataHist is a container class to hold N-dimensional binned data.
RooDataSet is a container class to hold unbinned data.
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.
static RooPlot * frame(const RooAbsRealLValue &var, double xmin, double xmax, Int_t nBins)
Create a new frame for a given variable in x.
void Draw(Option_t *options=nullptr) override
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.
void Print(Option_t *option="") const override
Dump this marker with its attributes.
RooCmdArg Save(bool flag=true)
RooCmdArg SumW2Error(bool flag)
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...