31 class TestBasic801 :
public RooFitTestUnit
34 TestBasic801(TFile* refFile,
Bool_t writeRef,
Int_t verbose) : RooFitTestUnit(
"Automated MC studies",refFile,writeRef,verbose) {} ;
45 RooRealVar mean(
"mean",
"mean of gaussians",5,0,10) ;
46 RooRealVar sigma1(
"sigma1",
"width of gaussians",0.5) ;
47 RooRealVar sigma2(
"sigma2",
"width of gaussians",1) ;
49 RooGaussian sig1(
"sig1",
"Signal component 1",
x,mean,sigma1) ;
50 RooGaussian sig2(
"sig2",
"Signal component 2",
x,mean,sigma2) ;
58 RooRealVar sig1frac(
"sig1frac",
"fraction of component 1 in signal",0.8,0.,1.) ;
62 RooRealVar nbkg(
"nbkg",
"number of background events,",150,0,1000) ;
63 RooRealVar nsig(
"nsig",
"number of signal events",150,0,1000) ;
109 regPlot(frame1,
"rf801_plot1") ;
110 regPlot(frame2,
"rf801_plot2") ;
111 regPlot(frame3,
"rf801_plot3") ;
112 regPlot(frame4,
"rf801_plot4") ;
RooMCStudy is a help class to facilitate Monte Carlo studies such as 'goodness-of-fit' studies...
RooAddPdf is an efficient implementation of a sum of PDFs of the form.
RooCmdArg Binned(Bool_t flag=kTRUE)
RooCmdArg PrintEvalErrors(Int_t numErrors)
RooCmdArg Extended(Bool_t flag=kTRUE)
RooPlot * plotError(const RooRealVar ¶m, 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())
Plot the distribution of the fit errors for the specified parameter on a newly created frame...
Bool_t generateAndFit(Int_t nSamples, Int_t nEvtPerSample=0, Bool_t keepGenData=kFALSE, const char *asciiFilePat=0)
Generate and fit 'nSamples' samples of 'nEvtPerSample' events.
RooCmdArg Silence(Bool_t flag=kTRUE)
RooCmdArg FitOptions(const char *opts)
RooRealVar represents a fundamental (non-derived) real valued object.
A RooPlot is a plot frame and a container for graphics objects within that frame. ...
RooCmdArg FitGauss(Bool_t flag=kTRUE)
RooPlot * plotNLL(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())
Plot the distribution of the -log(L) values on a newly created frame.
RooPlot * plotPull(const RooRealVar ¶m, const RooCmdArg &arg1, 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())
Plot the distribution of pull values for the specified parameter on a newly created frame...
RooPlot * plotParam(const RooRealVar ¶m, 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())
Plot the distribution of the fitted value of the given parameter on a newly created frame...
RooCmdArg Save(Bool_t flag=kTRUE)
RooCmdArg Bins(Int_t nbin)
Chebychev polynomial p.d.f.