35 RooRealVar mean(
"mean",
"mean of gaussians",5) ;
36 RooRealVar sigma1(
"sigma1",
"width of gaussians",0.5) ;
37 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) ;
42 RooRealVar sig1frac(
"sig1frac",
"fraction of component 1 in signal",0.8,0.,1.) ;
55 RooRealVar bkg1frac(
"sig1frac",
"fraction of component 1 in background",0.2,0.,1.) ;
59 RooRealVar bkgfrac(
"bkgfrac",
"fraction of background",0.5,0.,1.) ;
71 RooPlot* xframe =
x.frame(
Title(
"Component plotting of pdf=(sig1+sig2)+(bkg1+bkg2)")) ;
73 model.plotOn(xframe) ;
112 TCanvas* c =
new TCanvas(
"rf205_compplot",
"rf205_compplot",800,400) ;
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...
RooAddPdf is an efficient implementation of a sum of PDFs of the form.
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
Plot dataset on specified frame.
RooCmdArg LineColor(Color_t color)
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
RooCmdArg Title(const char *name)
RooCmdArg LineStyle(Style_t style)
RooRealVar represents a fundamental (non-derived) real valued object.
RooDataSet is a container class to hold unbinned data.
A RooPlot is a plot frame and a container for graphics objects within that frame. ...
RooCmdArg Components(const RooArgSet &compSet)
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
Chebychev polynomial p.d.f.
virtual void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.