Multidimensional models: using the likelihood ratio technique to construct a signal enhanced one-dimensional projection of a multi-dimensional pdf
void rf316_llratioplot()
{
RooRealVar fsig(
"fsig",
"signal fraction", 0.1, 0., 1.);
std::unique_ptr<RooDataSet> data{model.generate({
x,
y, z}, 20000)};
data->plotOn(frame);
model.plotOn(frame);
data->addColumn(llratio_func);
RooPlot *frame2 =
x.frame(
Title(
"Same projection on X with LLratio(y,z)>0.7"),
Bins(40));
dataSel->plotOn(frame2);
mcprojData->addColumn(llratio_func);
std::unique_ptr<RooAbsData> mcprojDataSel{mcprojData->reduce(
Cut(
"llratio>0.7"))};
TCanvas *
c =
new TCanvas(
"rf316_llratioplot",
"rf316_llratioplot", 800, 400);
gPad->SetLeftMargin(0.15);
gPad->SetLeftMargin(0.15);
}
Abstract interface for all probability density functions.
virtual RooAbsPdf * createProjection(const RooArgSet &iset)
Return a p.d.f that represent a projection of this p.d.f integrated over given observables.
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.
Plot frame and a container for graphics objects within that frame.
void Draw(Option_t *options=nullptr) override
Draw this plot and all of the elements it contains.
RooPolynomial implements a polynomial p.d.f of the form.
Efficient implementation of a product of PDFs of the form.
Variable that can be changed from the outside.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
RooCmdArg Title(const char *name)
RooCmdArg Bins(Int_t nbin)
RooCmdArg ProjWData(const RooAbsData &projData, bool binData=false)
RooCmdArg Cut(const char *cutSpec)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
[#1] INFO:Plotting -- RooAbsReal::plotOn(model) plot on x integrates over variables (y,z)
[#1] INFO:Plotting -- RooAbsReal::plotOn(model) plot on x averages using data variables (y,z)
[#1] INFO:Plotting -- RooAbsReal::plotOn(model) only the following components of the projection data will be used: (y,z)
[#1] INFO:Fitting -- using generic CPU library compiled with no vectorizations
- Date
- July 2008
- Author
- Wouter Verkerke
Definition in file rf316_llratioplot.C.