51 RooRealVar mean_ctl(
"mean_ctl",
"mean_ctl", -3, -8, 8);
55 RooRealVar a0_ctl(
"a0_ctl",
"a0_ctl", -0.1, -1, 1);
56 RooRealVar a1_ctl(
"a1_ctl",
"a1_ctl", 0.5, -0.1, 1);
60 RooRealVar f_ctl(
"f_ctl",
"f_ctl", 0.5, 0., 1.);
75 sample.defineType(
"physics");
76 sample.defineType(
"control");
80 Import(
"control", *data_ctl));
89 simPdf.addPdf(model,
"physics");
90 simPdf.addPdf(model_ctl,
"control");
96 simPdf.fitTo(combData);
105 combData.plotOn(frame1,
Cut(
"sample==sample::physics"));
111 simPdf.plotOn(frame1,
Slice(sample,
"physics"),
ProjWData(sample, combData));
116 combData.plotOn(frame2,
Cut(
"sample==sample::control"));
117 simPdf.plotOn(frame2,
Slice(sample,
"control"),
ProjWData(sample, combData));
121 TCanvas *
c =
new TCanvas(
"rf501_simultaneouspdf",
"rf403_simultaneouspdf", 800, 400);
124 gPad->SetLeftMargin(0.15);
128 gPad->SetLeftMargin(0.15);
RooAddPdf is an efficient implementation of a sum of PDFs of the form.
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooCategory represents a fundamental (non-derived) discrete value object.
Chebychev polynomial p.d.f.
RooDataSet is a container class to hold unbinned data.
A RooPlot is a plot frame and a container for graphics objects within that frame.
virtual void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.
RooRealVar represents a variable that can be changed from the outside.
RooSimultaneous facilitates simultaneous fitting of multiple PDFs to subsets of a given dataset.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
RooCmdArg ProjWData(const RooAbsData &projData, Bool_t binData=kFALSE)
RooCmdArg Index(RooCategory &icat)
RooCmdArg Components(const RooArgSet &compSet)
RooCmdArg Slice(const RooArgSet &sliceSet)
RooCmdArg Import(const char *state, TH1 &histo)
RooCmdArg Cut(const char *cutSpec)
RooCmdArg Bins(Int_t nbin)
RooCmdArg LineStyle(Style_t style)