34 RooRealVar mean(
"mean",
"mean of gaussians", 5);
35 RooRealVar sigma1(
"sigma1",
"width of gaussians", 0.5);
36 RooRealVar sigma2(
"sigma2",
"width of gaussians", 1);
38 RooGaussian sig1(
"sig1",
"Signal component 1",
x, mean, sigma1);
39 RooGaussian sig2(
"sig2",
"Signal component 2",
x, mean, sigma2);
47 RooRealVar sig1frac(
"sig1frac",
"fraction of component 1 in signal", 0.8, 0., 1.);
58 RooRealVar nsig(
"nsig",
"number of signal events", 500, 0., 10000);
59 RooRealVar nbkg(
"nbkg",
"number of background events", 500, 0, 10000);
67 std::unique_ptr<RooDataSet>
data{model.generate(
x)};
96 RooExtendPdf esig(
"esig",
"extended signal pdf", sig, nsig);
97 RooExtendPdf ebkg(
"ebkg",
"extended background pdf", bkg, nbkg);
106 new TCanvas(
"rf202_composite",
"rf202_composite", 600, 600);
107 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.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Chebychev polynomial p.d.f.
RooExtendPdf is a wrapper around an existing PDF that adds a parameteric extended likelihood term to ...
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.
Variable that can be changed from the outside.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
RooCmdArg PrintLevel(Int_t code)
RooCmdArg Components(Args_t &&... argsOrArgSet)
RooCmdArg Normalization(double scaleFactor)
RooCmdArg LineStyle(Style_t style)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...