Multidimensional models: projecting pdf and data ranges in continuous observables
void rf311_rangeplot()
{
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);
y.setRange(
"sigRegion", -1, 1);
z.setRange("sigRegion", -1, 1);
RooPlot *frame2 =
x.frame(
Title(
"Same projection on X in signal range of (Y,Z)"),
Bins(40));
gPad->SetLeftMargin(0.15);
gPad->SetLeftMargin(0.15);
}
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 ProjectionRange(const char *rangeName)
RooCmdArg CutRange(const char *rangeName)
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:Eval -- RooRealVar::setRange(y) new range named 'sigRegion' created with bounds [-1,1]
[#1] INFO:Eval -- RooRealVar::setRange(z) new range named 'sigRegion' created with bounds [-1,1]
[#1] INFO:Plotting -- RooTreeData::plotOn: plotting 1692 events out of 20000 total events
[#1] INFO:Plotting -- RooAbsReal::plotOn(model) plot on x integrates over variables (y,z) in range sigRegion
- Date
- July 2008
- Author
- Wouter Verkerke
Definition in file rf311_rangeplot.C.