Ratio plot for multiple graphs

Is it possible to create a Ratio Plot for two graphs from two different root files? ___
Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided

Hi Wile_E_Coyote,
Many thanks for the reply. I tried to make use of this concept. The problem I face is I cannot use Divide function for TGraph. And if I go with more traditional way, I use SetPoint(i,x,y) function. The problem I face in SetPoint is that it takes in “double” type parameters for the points while GetX() or GetY() function for TGraph returns double*.
Any idea how to fix this?

Try graph->GetX()[i] and graph->GetY()[i].

1 Like

Thanks a lot!! It works. I understood where I was wrong.

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