29 class TestBasic501 :
public RooFitTestUnit
32 TestBasic501(TFile* refFile,
Bool_t writeRef,
Int_t verbose) : RooFitTestUnit(
"Simultaneous p.d.f. operator",refFile,writeRef,verbose) {} ;
62 RooRealVar mean_ctl(
"mean_ctl",
"mean_ctl",-3,-8,8) ;
66 RooRealVar a0_ctl(
"a0_ctl",
"a0_ctl",-0.1,-1,1) ;
67 RooRealVar a1_ctl(
"a1_ctl",
"a1_ctl",0.5,-0.1,1) ;
90 sample.defineType(
"physics") ;
91 sample.defineType(
"control") ;
105 simPdf.addPdf(
model,
"physics") ;
106 simPdf.addPdf(model_ctl,
"control") ;
114 simPdf.fitTo(combData) ;
125 combData.plotOn(frame1,
Cut(
"sample==sample::physics")) ;
131 simPdf.plotOn(frame1,
Slice(sample,
"physics"),
ProjWData(sample,combData)) ;
136 combData.plotOn(frame2,
Cut(
"sample==sample::control")) ;
137 simPdf.plotOn(frame2,
Slice(sample,
"control"),
ProjWData(sample,combData)) ;
141 regPlot(frame1,
"rf501_plot1") ;
142 regPlot(frame2,
"rf501_plot2") ;
RooAddPdf is an efficient implementation of a sum of PDFs of the form.
RooCmdArg Cut(const char *cutSpec)
RooCmdArg ProjWData(const RooAbsData &projData, Bool_t binData=kFALSE)
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.
RooCategory represents a fundamental (non-derived) discrete value object.
A RooPlot is a plot frame and a container for graphics objects within that frame. ...
RooCmdArg Import(const char *state, TH1 &histo)
RooCmdArg Index(RooCategory &icat)
RooCmdArg Components(const RooArgSet &compSet)
RooCmdArg Bins(Int_t nbin)
Chebychev polynomial p.d.f.
RooCmdArg Slice(const RooArgSet &sliceSet)
RooSimultaneous facilitates simultaneous fitting of multiple PDFs to subsets of a given dataset...