'MULTIDIMENSIONAL MODELS' RooFit tutorial macro #305
Multi-dimensional p.d.f.s with conditional p.d.fs in product
pdf = gauss(x,f(y),sx | y ) * gauss(y,ms,sx) with f(y) = a0 + a1*y
Processing /mnt/build/workspace/root-makedoc-v614/rootspi/rdoc/src/v6-14-00-patches/tutorials/roofit/rf305_condcorrprod.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://roofit.sourceforge.net/license.txt
[#1] INFO:Plotting -- RooAbsReal::plotOn(model) plot on x integrates over variables (y)
[#1] INFO:NumericIntegration -- RooRealIntegral::init([gaussy_NORM[y]_X_gaussx_NORM[x]]_Int[y]) using numeric integrator RooIntegrator1D to calculate Int(y)
[#1] INFO:Plotting -- RooAbsReal::plotOn(model) plot on y integrates over variables (x)
void rf305_condcorrprod()
{
RooRealVar sigmax(
"sigma",
"width of gaussian",0.5) ;
RooGaussian gaussx(
"gaussx",
"Gaussian in x with shifting mean in y",x,fy,sigmax) ;
model.plotOn(xframe) ;
model.plotOn(yframe) ;
TCanvas *c =
new TCanvas(
"rf305_condcorrprod",
"rf05_condcorrprod",1200, 400);
}
- Author
- 07/2008 - Wouter Verkerke
Definition in file rf305_condcorrprod.C.