'MULTIDIMENSIONAL MODELS' RooFit tutorial macro #316
Using the likelihood ratio technique to construct a signal enhanced one-dimensional projection of a multi-dimensional p.d.f.
Processing /mnt/build/workspace/root-makedoc-v608/rootspi/rdoc/src/v6-08-00-patches/tutorials/roofit/rf316_llratioplot.C...
void rf316_llratioplot()
{
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) ;
RooAbsPdf* totyz = model.createProjection(x) ;
RooPlot* frame2 = x.frame(
Title(
"Same projection on X with LLratio(y,z)>0.7"),
Bins(40)) ;
model.plotOn(frame2,
ProjWData(*mcprojDataSel)) ;
TCanvas* c =
new TCanvas(
"rf316_llratioplot",
"rf316_llratioplot",800,400) ;
}
- Author
- 07/2008 - Wouter Verkerke
Definition in file rf316_llratioplot.C.