'VALIDATION AND MC STUDIES' RooFit tutorial macro #801
A Toy Monte Carlo study that perform cycles of
Processing /mnt/build/workspace/root-makedoc-v608/rootspi/rdoc/src/v6-08-00-patches/tutorials/roofit/rf801_mcstudy.C...
void rf801_mcstudy()
{
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 nbkg(
"nbkg",
"number of background events,",150,0,1000) ;
RooRealVar nsig(
"nsig",
"number of signal events",150,0,1000) ;
}
- Author
Definition in file rf801_mcstudy.C.