Hello,
I am using RooMCStudy to do a toyMC study, and have two distributions, one for signal and one for background. I have so the following model:
RooAddPdf model(“model”,“model”,RooArgList(sig,bkg),RooArgList(ratio)) ;
where I have the ratio between signal and background. I then generate a fixed number of events in each pseudo-experiment:
myRooMCStudy->generateAndFit(500,2000) ;
I would like that my number of signal be distributed according to a binomial distribution (the number of background events would then be simply 2000-Nsig). Is there any way to do this?
Thanks for your advice!
Thomas.