30void rf510_wsnamedsets()
54 w->loadSnapshot(
"reference_fit");
56 w->loadSnapshot(
"reference_fit_bkgonly");
60 new TCanvas(
"rf510_wsnamedsets",
"rf503_wsnamedsets", 600, 600);
61 gPad->SetLeftMargin(0.15);
62 frame->GetYaxis()->SetTitleOffset(1.4);
81 RooRealVar mean(
"mean",
"mean of gaussians", 5, 0, 10);
82 RooRealVar sigma1(
"sigma1",
"width of gaussians", 0.5);
83 RooRealVar sigma2(
"sigma2",
"width of gaussians", 1);
85 RooGaussian sig1(
"sig1",
"Signal component 1",
x, mean, sigma1);
86 RooGaussian sig2(
"sig2",
"Signal component 2",
x, mean, sigma2);
94 RooRealVar sig1frac(
"sig1frac",
"fraction of component 1 in signal", 0.8, 0., 1.);
98 RooRealVar bkgfrac(
"bkgfrac",
"fraction of background", 0.5, 0., 1.);
114 std::unique_ptr<RooArgSet> params{model.getParameters(
x)};
115 w.defineSet(
"parameters", *params);
116 w.defineSet(
"observables",
x);
131 std::unique_ptr<RooDataSet> refData{model.generate(
x, 10000)};
136 w.saveSnapshot(
"reference_fit", *params,
true);
142 bkgfrac.setConstant(
true);
143 bkgfrac.removeError();
146 w.saveSnapshot(
"reference_fit_bkgonly", *params,
true);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void w
Abstract interface for all probability density functions.
Efficient implementation of a sum of PDFs of the form.
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Chebychev polynomial p.d.f.
Plot frame and a container for graphics objects within that frame.
Variable that can be changed from the outside.
Persistable container for RooFit projects.
RooCmdArg PrintLevel(Int_t code)
RooCmdArg LineColor(TColorNumber color)
RooCmdArg LineStyle(Style_t style)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...