Multidimensional models: projecting pdf and data ranges in continuous observables
{
RooGaussian gz(
"gz",
"gz", z, RooConst(0), RooConst(1));
RooRealVar fsig(
"fsig",
"signal fraction", 0.1, 0., 1.);
RooPlot *frame =
x.
frame(Title(
"Projection of 3D data and pdf on X"), Bins(40));
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));
data->plotOn(frame2, CutRange(
"sigRegion"));
model.plotOn(frame2, ProjectionRange("sigRegion"));
gPad->SetLeftMargin(0.15);
gPad->SetLeftMargin(0.15);
}
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
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.
RooDataSet is a container class to hold unbinned data.
A RooPlot is a plot frame and a container for graphics objects within that frame.
static RooPlot * frame(const RooAbsRealLValue &var, double xmin, double xmax, Int_t nBins)
Create a new frame for a given variable in x.
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.
RooProdPdf is an efficient implementation of a product of PDFs of the form.
RooRealVar represents a variable that can be changed from the outside.
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...
[#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.