Hi See the example posted in Fitting in ROOT with a function having two integrals in it - #10 by moneta
Lorenzo