Create a function based on a simulation

If you just want the integral of your total “f1” ("myfuncTest10") function, you can simply use the TF1::Integral and TF1::IntegralError methods.

If you want integrals of its “parts”, see, e.g.: