'ADDITION AND CONVOLUTION' RooFit tutorial macro #207
Tools and utilities for manipulation of composite objects
Processing /mnt/build/workspace/root-makedoc-v608/rootspi/rdoc/src/v6-08-00-patches/tutorials/roofit/rf207_comptools.C...
void rf207_comptools()
{
RooGaussian sig(
"sig",
"Signal component 1",x,mean,sigma) ;
RooRealVar bkg1frac(
"bkg1frac",
"fraction of component 1 in background",0.2,0.,1.) ;
RooRealVar bkgfrac(
"bkgfrac",
"fraction of background",0.5,0.,1.) ;
RooArgSet* model_obs = model.getObservables(data) ;
RooArgSet* model_params = model.getParameters(x) ;
model_params->
Print(
"v") ;
RooArgSet* model_params2 = model.getParameters(data) ;
RooArgSet* model_comps = model.getComponents() ;
model_comps->
Print(
"v") ;
RooRealVar sigma2(
"sigma2",
"width of gaussians",1) ;
RooGaussian sig2(
"sig2",
"Signal component 1",x,mean,sigma2) ;
RooRealVar sig1frac(
"sig1frac",
"fraction of component 1 in signal",0.8,0.,1.) ;
cust.replaceArg(sig,sigsum) ;
delete cust_clone ;
}
- Author
- 07/2008 - Wouter Verkerke
Definition in file rf207_comptools.C.