'MULTIDIMENSIONAL MODELS' RooFit tutorial macro #310
Projecting p.d.f and data ranges in continuous observables
Processing /mnt/build/workspace/root-makedoc-v608/rootspi/rdoc/src/v6-08-00-patches/tutorials/roofit/rf311_rangeplot.C...
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.