How to do a numerical integration of a function in one dimension with ROOT?

I would like to use ROOT to do a numerical integration of a function in one dimension, how can I do that?. I think that the IntegratorOneDim class is used, or rather the following is typed in the ROOT user interface: ROOT::Math::IntegratorOneDim, is this correct?; but I don’t know how I have to type (in the ROOT user interface) the necessary data to perform the numerical integration

_Geant4 Version:_11.2.1
_Operating System:_Windows 10
_Compiler/Version:_Visual Studio 2022
_CMake Version:_3.29.0-rc2

Thanks for the reply Doctor Ben


ROOT has its own dedicated forum: https://root-forum.cern.ch, which is the most appropriate place for questions on it.