Integral of fit functions

Hello ROOTers,
I have an histogram fitted with a Landau. Now, I am trying to get the integral of the fitted function in a specific interval. How can I get an handle to the function? Or something similar, I don’t know…


you can use the method TH1::GetFunction, for example for your landau you do:

TF1 *func = h->GetFunction(“landau”);