Intersection points between TF1 and TH1

Hello,

I am looking for a command to get automatically the x value of an intersection between TF1 and TH1 ?

Try to find the keyword “intersection” on the search field of this forum. There is some
posts with can help you. May be @moneta has some idea.

1 Like

Hi,
There is no automatic way to get this in ROOT.
This posts can help you: TF1 intersection - #2 by brun
where you need to replace one of the TF1 with the TH1. Ini case of multiple interceptions the code above needs to be adapted and one need to search in different ranges for the multiple intersection points.

Lorenzo

1 Like

In case of TH1, how to replace f2->EvalPar () ?

h1->GetBinContent(h1->FindBin(x));

1 Like

Thank You !

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.