27 class TestBasic202 :
public RooFitTestUnit
30 TestBasic202(TFile* refFile,
Bool_t writeRef,
Int_t verbose) : RooFitTestUnit(
"Extended ML fits to addition operator p.d.f.s",refFile,writeRef,verbose) {} ;
40 RooRealVar mean(
"mean",
"mean of gaussians",5) ;
41 RooRealVar sigma1(
"sigma1",
"width of gaussians",0.5) ;
42 RooRealVar sigma2(
"sigma2",
"width of gaussians",1) ;
44 RooGaussian sig1(
"sig1",
"Signal component 1",
x,mean,sigma1) ;
45 RooGaussian sig2(
"sig2",
"Signal component 2",
x,mean,sigma2) ;
53 RooRealVar sig1frac(
"sig1frac",
"fraction of component 1 in signal",0.8,0.,1.) ;
65 RooRealVar nsig(
"nsig",
"number of signal events",500,0.,10000) ;
66 RooRealVar nbkg(
"nbkg",
"number of background events",500,0,10000) ;
102 RooExtendPdf esig(
"esig",
"extended signal p.d.f",sig,nsig) ;
103 RooExtendPdf ebkg(
"ebkg",
"extended background p.d.f",bkg,nbkg) ;
113 regPlot(xframe,
"rf202_plot1") ;
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 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)
RooCmdArg Normalization(Double_t scaleFactor)
Chebychev polynomial p.d.f.