36 RooRealVar mean(
"mean",
"mean of gaussians", 5);
37 RooRealVar sigma1(
"sigma1",
"width of gaussians", 0.5);
38 RooRealVar sigma2(
"sigma2",
"width of gaussians", 1);
40 RooGaussian sig1(
"sig1",
"Signal component 1",
x, mean, sigma1);
41 RooGaussian sig2(
"sig2",
"Signal component 2",
x, mean, sigma2);
56 RooRealVar sig1frac(
"sig1frac",
"fraction of component 1 in signal", 0.8, 0., 1.);
63 RooRealVar bkgfrac(
"bkgfrac",
"fraction of background", 0.5, 0., 1.);
70 std::unique_ptr<RooDataSet> data{model.generate(
x, 1000)};
113 new TCanvas(
"rf201_composite",
"rf201_composite", 600, 600);
114 gPad->SetLeftMargin(0.15);
115 xframe->GetYaxis()->SetTitleOffset(1.4);
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.
RooCmdArg Title(const char *name)
RooCmdArg PrintLevel(Int_t code)
RooCmdArg Components(Args_t &&... argsOrArgSet)
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...