Data from pdf.generate()


When generating a dataset using a RooAbsPdf, is there a way to specify the seed used?
In reading the documentation, I got stuck because generate() is defined in line 60 in the link provided, but it calls a function generate() which the documentation claims is defined right there in line 60. (I’m guessing this is a mistake and there is another generate() defined somewhere else.)

So I guess I have two questions: 1. Can I set the seed when generating data? and 2. Am I reading the documentation correctly?

https://root.cern.ch/doc/master/RooAbsPdf_8h_source.html#l00060

_PYROOT Version: 6.26.10
Platform: Not Provided
Compiler: Not Provided


Welcome to the ROOT Form!
I’m sure @jonas can help you

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.