Hello,
I am looking for a command to get automatically the x value of an intersection 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.
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
In case of TH1, how to replace f2->EvalPar () ?
h1->GetBinContent(h1->FindBin(x));
Thank You !
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.