'MULTIDIMENSIONAL MODELS' RooFit tutorial macro #310
Projecting p.d.f and data ranges in continuous observables
␛[1mRooFit v3.60 -- Developed by Wouter Verkerke and David Kirkby␛[0m
Copyright (C) 2000-2013 NIKHEF, University of California & Stanford University
All rights reserved, please read http://roofit.sourceforge.net/license.txt
[#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
{
RooRealVar fsig(
"fsig",
"signal fraction",0.1,0.,1.) ;
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)) ;
}
RooAddPdf is an efficient implementation of a sum of PDFs of the form.
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.
virtual void Draw(Option_t *options=0)
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 fundamental (non-derived) real valued object.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title Offset is a correction factor with respect to the "s...
RooCmdArg ProjectionRange(const char *rangeName)
RooConstVar & RooConst(Double_t val)
RooCmdArg CutRange(const char *rangeName)
RooCmdArg Bins(Int_t nbin)
- Author
- 07/2008 - Wouter Verkerke
Definition in file rf311_rangeplot.C.