32 RooRealVar mean(
"mean",
"mean of gaussians", 5);
33 RooRealVar sigma1(
"sigma1",
"width of gaussians", 0.5);
34 RooRealVar sigma2(
"sigma2",
"width of gaussians", 1);
35 RooGaussian sig1(
"sig1",
"Signal component 1",
x, mean, sigma1);
36 RooGaussian sig2(
"sig2",
"Signal component 2",
x, mean, sigma2);
39 RooRealVar sig1frac(
"sig1frac",
"fraction of component 1 in signal", 0.8, 0., 1.);
52 RooRealVar bkg1frac(
"sig1frac",
"fraction of component 1 in background", 0.2, 0., 1.);
56 RooRealVar bkgfrac(
"bkgfrac",
"fraction of background", 0.5, 0., 1.);
63 std::unique_ptr<RooArgSet> params{model.getParameters(
x)};
66 std::unique_ptr<RooArgSet> initParams{
static_cast<RooArgSet *
>(params->snapshot())};
69 std::unique_ptr<RooDataSet>
data{model.generate(
x, 1000)};
82 params->printLatex(
Sibling(*initParams));
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.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Chebychev polynomial p.d.f.
Variable that can be changed from the outside.
RooCmdArg Columns(Int_t ncol)
RooCmdArg Sibling(const RooAbsCollection &sibling)
RooCmdArg OutputFile(const char *fileName)
RooCmdArg PrintLevel(Int_t code)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...