27 void rf204_extrangefit()
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.) ;
59 x.setRange(
"signalRange",4,6) ;
62 RooRealVar nsig(
"nsig",
"number of signal events in signalRange",500,0.,10000) ;
63 RooRealVar nbkg(
"nbkg",
"number of background events in signalRange",500,0,10000) ;
64 RooExtendPdf esig(
"esig",
"extended signal p.d.f",sig,nsig,
"signalRange") ;
65 RooExtendPdf ebkg(
"ebkg",
"extended background p.d.f",bkg,nbkg,
"signalRange") ;
RooAddPdf is an efficient implementation of a sum of PDFs of the form.
RooCmdArg Extended(Bool_t flag=kTRUE)
virtual void Print(Option_t *options=0) const
Print TNamed name and title.
RooRealVar represents a fundamental (non-derived) real valued object.
RooDataSet is a container class to hold unbinned data.
RooCmdArg Save(Bool_t flag=kTRUE)
Chebychev polynomial p.d.f.