TProfile
TProfile is a one-dimensional profile histogram class from the ROOT data analysis framework. It is designed to summarize a set of (X, Y) data points by binning the X axis and recording statistics of the corresponding Y values within each bin. For each X-bin, TProfile stores the number of entries and the accumulated sums of Y and Y squared, from which the bin’s mean value of Y and its uncertainty can be derived. This structure allows users to study how the average Y depends on X while reducing the data to per-bin means rather than the full scatter.
The profile representation is useful when the goal is to understand the overall trend of a dependent
Typical usage involves creating a profile with specified X-axis binning, filling it with pairs (x, y) (optionally