I have .dat file and after reading it i have drawn the graph.Now what i need to do is to take all the points which comes in the range( i.e. the points between the local maximum and minimum points just next to each other of which the difference between these two extreme points is less than or equal to 0.3 % deviation(can be seen from the graph) until that point is encountered where there is a maximum point just before the global minimum point from the beginning) and then taking the average of these all points which have been selected by the above condition( it also needs to be calculate the points which comes under this condition which varies from graph to graph obviously.
I am attaching the .dat file, the commands until the graph is drawn and the pdf file of the graph.
Now what i need is that after the graph is drawn,how should i proceed to accomplish the above task through ROOT commands as to make my task easy as there are lots of graphs.
I would be highly grateful for the reply