RooMCStudy with binomial distribution

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.

Hello Thomas,

I think this should be done automatically, since you generate a fixed number of events and your model pdf is not extended. If you see that this is not done, please post your example code, so it can be investigated

Cheers,

Lorenzo