Improper integrals using TF1

Hello fellow (Py)ROOTers

I’d like to use PyROOT to compute an improper integral, with limits (0, +infinity), and I’m having trouble finding any documentation for this. There appears to be support in ROOT::Math::IntegratorOneDim::IntegralUp , but examples are very sparse and none are for Python.

Is it even possible to define a:

ROOT::Math::IGenFunction& f

pythonically? There’s very little documentation for this. Ideally I would use TF1::Integral but it appears that the limits must be finite for this.

Thanks very much!

Hi,

since RooGenFunction is a normal class that has an associated dictionary, creating objects of it is not a problem per se.

Which example do you want to translate?

Cheers,
Wim