'MULTIDIMENSIONAL MODELS' RooFit tutorial macro #310
Projecting p.d.f and data ranges in continuous observables
Processing /builddir/build/BUILD/root-6.10.00/tutorials/roofit/rf311_rangeplot.C...
[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:
[#1] INFO:Eval -- RooRealVar::setRange(y) new range named 'sigRegion' created with bounds [-1,1]
[#1] INFO:Plotting -- RooTreeData::plotOn: plotting 1692 events out of 20000 total events
using namespace RooFit ;
void rf311_rangeplot()
{
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)) ;
TCanvas* c =
new TCanvas(
"rf311_rangeplot",
"rf310_rangeplot",800,400) ;
}
- Author
- 07/2008 - Wouter Verkerke
Definition in file rf311_rangeplot.C.