I’m using a RooGenericPdf as part of a model which needs to be fitted several times This is quite slow (even when enabling multi-threading) because of the numerical integration used by RooGenericPdf. Is there a way to set an expression for the analytical integral of the RooGenericPdf (maybe similar to the way we set an expression for the PDF itself)?
It would be great if you could open a feature request on GitHub about this! Maybe even with a suggestion of an interface that would best fit your use case. I agree that this would really be a great feature and already thought about it!
Until we have it, I’m afraid the only solution is to create a new class inheriting from RooAbsPdf that also implements the analytical integral interface (see the existing pdfs like RooGaussian for a copy-paste template).