Retrieve intersection coordinates

Hi guys,

I have two curves plotted on the same canvas and I’d like to retrieve the x coordinate of the intersection point. Any suggestion?

Cheers

Hi @Cellamare; @couet, any ideas?

Cheers,
J.

1 Like

which ROOT objects are they?

I have a line (TLine) and an histo (TH1D). @couet

Well, there are no predefined tools to do it, you will have to do the math yourself.

1 Like

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