34 class TestBasic599 :
public RooFitTestUnit
37 TestBasic599(TFile* refFile,
Bool_t writeRef,
Int_t verbose) : RooFitTestUnit(
"Workspace and p.d.f. persistence",refFile,writeRef,verbose) {} ;
44 regWS(w,
"Basic11_ws") ;
48 RooRealVar meanx(
"meanx",
"mean of gaussian",-1) ;
49 RooRealVar sigmax(
"sigmax",
"width of gaussian",3) ;
50 RooGaussian gaussx(
"gaussx",
"gaussian PDF",
x,meanx,sigmax) ;
54 RooRealVar meany(
"meany",
"mean of gaussian",-1) ;
55 RooRealVar sigmay(
"sigmay",
"width of gaussian",3) ;
56 RooGaussian gaussy(
"gaussy",
"gaussian PDF",
y,meany,sigmay) ;
77 gaussx.plotOn(frame1) ;
78 regPlot(frame1,
"Basic11_gaussx_framex") ;
82 gaussxy.plotOn(frame2) ;
83 regPlot(frame2,
"Basic11_gaussxy_framex") ;
86 gaussxy.plotOn(frame3) ;
87 regPlot(frame3,
"Basic11_gaussxy_framey") ;
91 sumxy.plotOn(frame4) ;
92 regPlot(frame4,
"Basic11_sumxy_framex") ;
95 sumxy.plotOn(frame5) ;
96 regPlot(frame5,
"Basic11_sumxy_framey") ;
118 RooRealVar gm1frac(
"gm1frac",
"fraction of gm1",0.5) ;
128 decay_gm1.plotOn(frame6) ;
129 regPlot(frame6,
"Basic11_decay_gm1_framedt") ;
132 decay_gmsum.plotOn(frame7) ;
133 regPlot(frame7,
"Basic11_decay_gmsum_framedt") ;
137 cat.defineType(
"A") ;
138 cat.defineType(
"B") ;
140 sim.addPdf(gaussxy,
"A") ;
141 sim.addPdf(flatxy,
"B") ;
155 regPlot(frame8,
"Basic11_sim_framex") ;
169 regPlot(frame1,
"Basic11_gaussx_framex") ;
177 regPlot(frame2,
"Basic11_gaussxy_framex") ;
182 regPlot(frame3,
"Basic11_gaussxy_framey") ;
190 regPlot(frame4,
"Basic11_sumxy_framex") ;
195 regPlot(frame5,
"Basic11_sumxy_framey") ;
202 decay_gm1->
plotOn(frame6) ;
203 regPlot(frame6,
"Basic11_decay_gm1_framedt") ;
210 decay_gmsum->
plotOn(frame7) ;
211 regPlot(frame7,
"Basic11_decay_gmsum_framedt") ;
228 regPlot(frame8,
"Basic11_sim_framex") ;
RooAddPdf is an efficient implementation of a sum of PDFs of the form.
RooProdPdf is an efficient implementation of a product of PDFs of the form.
RooCmdArg Project(const RooArgSet &projSet)
RooCmdArg ProjWData(const RooAbsData &projData, Bool_t binData=kFALSE)
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 RooCmdArg &arg9=RooCmdArg::none(), const RooCmdArg &arg10=RooCmdArg::none()) const
Plot (project) PDF on specified frame.
virtual Bool_t setLabel(const char *label, Bool_t printError=kTRUE)
Set value by specifying the name of the desired state If printError is set, a message will be printed...
RooDataSet is a container class to hold N-dimensional binned data.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t tau
RooCategory * cat(const char *name) const
Retrieve discrete variable (RooCategory) with given name. A null pointer is returned if not found...
RooRealVar represents a fundamental (non-derived) real valued object.
RooCategory represents a fundamental (non-derived) discrete value object.
RooPlot * frame(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()) const
A RooPlot is a plot frame and a container for graphics objects within that frame. ...
RooAbsPdf * pdf(const char *name) const
Retrieve p.d.f (RooAbsPdf) with given name. A null pointer is returned if not found.
RooRealVar * var(const char *name) const
Retrieve real-valued variable (RooRealVar) with given name. A null pointer is returned if not found...
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Bool_t import(const RooAbsArg &arg, const RooCmdArg &arg1=RooCmdArg(), const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg(), const RooCmdArg &arg4=RooCmdArg(), const RooCmdArg &arg5=RooCmdArg(), const RooCmdArg &arg6=RooCmdArg(), const RooCmdArg &arg7=RooCmdArg(), const RooCmdArg &arg8=RooCmdArg(), const RooCmdArg &arg9=RooCmdArg())
Import a RooAbsArg object, e.g.
RooPolynomial implements a polynomial p.d.f of the form By default coefficient a_0 is chosen to be 1...
RooCmdArg RenameConflictNodes(const char *suffix, Bool_t renameOrigNodes=kFALSE)
RooSimultaneous facilitates simultaneous fitting of multiple PDFs to subsets of a given dataset...
The RooWorkspace is a persistable container for RooFit projects.
Single or double sided decay function that can be analytically convolved with any RooResolutionModel ...
Class RooGaussModel implements a RooResolutionModel that models a Gaussian distribution.