38 RooRealVar mean(
"mean",
"mean of gaussians", 5);
39 RooRealVar sigma1(
"sigma1",
"width of gaussians", 0.5);
40 RooRealVar sigma2(
"sigma2",
"width of gaussians", 1);
42 RooGaussian sig1(
"sig1",
"Signal component 1",
x, mean, sigma1);
43 RooGaussian sig2(
"sig2",
"Signal component 2",
x, mean, sigma2);
51 RooRealVar sig1frac(
"sig1frac",
"fraction of component 1 in signal", 0.8, 0., 1.);
58 x.setRange(
"signalRange", 4, 6);
61 RooRealVar nsig(
"nsig",
"number of signal events in signalRange", 500, 0., 10000) ;
62 RooRealVar nbkg(
"nbkg",
"number of background events in signalRange", 500, 0, 10000) ;
80 auto canv =
new TCanvas(
"Canvas",
"Canvas", 1500, 600);
RooAddPdf is an 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.
RooDataSet is a container class to hold unbinned data.
RooFitResult is a container class to hold the input and output of a PDF fit to a dataset.
RooRealVar represents a variable that can be changed from the outside.
virtual void Print(Option_t *option="") const
This method must be overridden when a class wants to print itself.
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
RooCmdArg Save(Bool_t flag=kTRUE)