'ORGANIZATION AND SIMULTANEOUS FITS' RooFit tutorial macro #511
Basic use of the 'object factory' associated with a workspace to rapidly build p.d.f.s functions and their parameter components
Processing /mnt/build/workspace/root-makedoc-v610/rootspi/rdoc/src/v6-10-00-patches/tutorials/roofit/rf511_wsfactory_basic.C...
{
if (!compact) {
w->
factory(
"Gaussian::sig1(x[-10,10],mean[5,0,10],0.5)") ;
w->
factory(
"Gaussian::sig2(x,mean,1)") ;
w->
factory(
"Chebychev::bkg(x,{a0[0.5,0.,1],a1[0.2,0.,1.]})") ;
w->
factory(
"SUM::sig(sig1frac[0.8,0.,1.]*sig1,sig2)") ;
w->
factory(
"SUM::model(bkgfrac[0.5,0.,1.]*bkg,sig)") ;
} else {
w->
factory(
"SUM::model(bkgfrac[0.5,0.,1.]*Chebychev::bkg(x[-10,10],{a0[0.5,0.,1],a1[0.2,0.,1.]})," "SUM(sig1frac[0.8,0.,1.]*Gaussian(x,mean[5,0,10],0.5), Gaussian(x,mean,1)))") ;
}
w->
factory(
"KeysPdf::k(x,data,NoMirror,0.2)") ;
}
- Author
- 04/2009 - Wouter Verkerke
Definition in file rf511_wsfactory_basic.C.