For my study I need to integrate a 4-dimensional parametric function. I read the documentation concerning the numerical integration here http://root.cern.ch/drupal/content/function-integration. It is designed to work with Functor and Functor1D. I tried to supply IntegatorMultiDim with the ParamFunctor and is not accepting it. Is there any way to integrate a multidimensional parametric function?
you can use RootMpi to paralelize your algorithm. RootMpi is a library for parallel computing in ROOT. The project has a one-dimensional integrator in the tutorials. You can see the source code and give us some feedback.
In your case you cannot it is better you wrap directly the free function in the WrappedParamFunction class.
Below is an example, note that you don’t need to supply the template parameter, since the free function type is the class default one: