TGraphErrors
TGraphErrors is a class from the CERN ROOT data analysis framework that represents a two‑dimensional graph with error bars. It extends the basic TGraph class by storing, for each point, the associated uncertainties in the X and Y coordinates. A TGraphErrors object is typically created by providing arrays of X and Y values together with their errors, e.g. \(x[i], y[i], ex[i], ey[i]\), and a number of points. Its constructor can also accept vectors or std:: arrays, allowing flexible data input.
Once instantiated, the graph can be drawn with the Draw() method, using options such as "AP" for
Data contained in a TGraphErrors can be accessed via GetPoint and GetError methods; GetPoint returns the (x,y)
TGraphErrors is commonly used in high‑energy physics to visualize measurement points with uncertainties, to feed into