'ORGANIZATION AND SIMULTANEOUS FITS' RooFit tutorial macro #509
Easy CINT interactive access to workspace contents through a 'C++' namespace in CINT that maps the workspace contents in a typesafe way
*** NB: This macro exploits a feature native to CINT and cannot be compiled ***
Processing /mnt/build/workspace/root-makedoc-v610/rootspi/rdoc/src/v6-10-00-patches/tutorials/roofit/rf509_wsinteractive.C...
void rf509_wsinteractive()
{
fillWorkspace(*w1) ;
new TCanvas(
"rf509_wsinteractive",
"rf509_wsinteractive",600,600) ;
}
{
RooRealVar mean(
"mean",
"mean of gaussians",5,0,10) ;
RooRealVar sigma1(
"sigma1",
"width of gaussians",0.5) ;
RooRealVar sigma2(
"sigma2",
"width of gaussians",1) ;
RooGaussian sig1(
"sig1",
"Signal component 1",x,mean,sigma1) ;
RooGaussian sig2(
"sig2",
"Signal component 2",x,mean,sigma2) ;
RooRealVar sig1frac(
"sig1frac",
"fraction of component 1 in signal",0.8,0.,1.) ;
RooRealVar bkgfrac(
"bkgfrac",
"fraction of background",0.5,0.,1.) ;
}
- Author
- 04/2009 - Wouter Verkerke
Definition in file rf509_wsinteractive.C.