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);
36 RooGaussian sig1(
"sig1",
"Signal component 1",
x, mean, sigma1);
37 RooGaussian sig2(
"sig2",
"Signal component 2",
x, mean, sigma2);
52 RooRealVar sig1frac(
"sig1frac",
"fraction of component 1 in signal", 0.8, 0., 1.);
59 RooRealVar bkgfrac(
"bkgfrac",
"fraction of background", 0.5, 0., 1.);
72 RooPlot *xframe =
x.frame(
Title(
"Example of composite pdf=(sig1+sig2)+bkg"));
109 new TCanvas(
"rf201_composite",
"rf201_composite", 600, 600);
110 gPad->SetLeftMargin(0.15);
virtual RooPlot * plotOn(RooPlot *frame, const RooCmdArg &arg1=RooCmdArg::none(), const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none()) const
Calls RooPlot* plotOn(RooPlot* frame, const RooLinkedList& cmdList) const ;.
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.
A RooPlot is a plot frame and a container for graphics objects within that frame.
virtual void Print(Option_t *options=0) const
Print TNamed name and title.
virtual void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.
RooRealVar represents a fundamental (non-derived) real valued object.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title Offset is a correction factor with respect to the "s...
Template specialisation used in RooAbsArg:
RooCmdArg Components(const RooArgSet &compSet)
RooCmdArg LineColor(Color_t color)
RooCmdArg LineStyle(Style_t style)