'ORGANIZATION AND SIMULTANEOUS FITS' RooFit tutorial macro #512
Illustration of operator expressions and expression-based basic p.d.f.s in the workspace factory syntax
Processing /mnt/build/workspace/root-makedoc-v608/rootspi/rdoc/src/v6-08-00-patches/tutorials/roofit/rf512_wsfactory_oper.C...
void rf512_wsfactory_oper()
{
w->
factory(
"$Typedef(Gaussian,Gaus)") ;
w->
factory(
"$Typedef(Chebychev,Cheby)") ;
w->
factory(
"SUM::summodel( f[0,1]*Gaussian::gx(x[-10,10],m[0],1.0), Chebychev::ch(x,{0.1,0.2,-0.3}) )") ;
w->
factory(
"SUM::extsummodel( Nsig[0,1000]*gx, Nbkg[0,1000]*ch )") ;
w->
factory(
"PROD::gxz( gx, Gaussian::gz(z[-10,10],0,1) )") ;
w->
factory(
"Gaussian::gy( y[-10,10], x, 1.0 )") ;
w->
factory(
"PROD::gxycond( gy|x, gx )") ;
w->
factory(
"FCONV::lxg( x, Gaussian::g(x,mg[0],1), Landau::lc(x,0,1) )") ;
w->
factory(
"SIMUL::smodel( c[A=0,B=1], A=Gaussian::gs(x,m,s[1]), B=Landau::ls(x,0,1) )") ;
w->
factory(
"prod::uv(u[10],v[10])") ;
w->
factory(
"CEXPR::GC('x*x+a',{x,a[1]})") ;
}
- Author
- 04/2009 - Wouter Verkerke
Definition in file rf512_wsfactory_oper.C.