35 RooRealVar mean(
"mean",
"mean of g1 and g2", 0);
36 RooRealVar sigma_g1(
"sigma_g1",
"width of g1", 3);
39 RooRealVar sigma_g2(
"sigma_g2",
"width of g2", 4, 3.0, 6.0);
42 RooRealVar frac(
"frac",
"frac", 0.5, 0.0, 1.0);
46 std::unique_ptr<RooDataSet>
data{model.generate(
x, 1000)};
49 std::unique_ptr<RooAbsReal> nll{model.createNLL(*
data)};
65 std::unique_ptr<RooArgSet>{model.getParameters(
x)}->
Print(
"s");
92 std::unique_ptr<RooFitResult> fitResult{
m.save()};
95 RooPlot *frame =
m.contour(frac, sigma_g2, 1, 2, 3);
96 frame->
SetTitle(
"Minuit contour plot");
99 fitResult->Print(
"v");
114 sigma_g2.setConstant(
true);
121 new TCanvas(
"rf601_intminuit",
"rf601_intminuit", 600, 600);
122 gPad->SetLeftMargin(0.15);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Efficient implementation of a sum of PDFs of the form.
RooArgList is a container object that can hold multiple RooAbsArg objects.
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.
void SetTitle(const char *name) override
Set the title of the RooPlot to 'title'.
void Draw(Option_t *options=nullptr) override
Draw this plot and all of the elements it contains.
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.
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...