Home

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

variable
with
respect
to
an
independent
variable
without
preserving
every
individual
observation.
In
practice,
a
TProfile
can
reveal
linear
or
nonlinear
relationships,
identify
calibration
slopes,
and
highlight
regions
where
the
mean
behavior
changes.
It
also
supports
weighting,
so
entries
with
different
importance
can
influence
the
per-bin
statistics
accordingly.
Drawn
graphs
of
a
TProfile
typically
show
the
mean
Y
per
X-bin
with
error
bars
corresponding
to
the
uncertainty
on
the
mean,
and
the
per-bin
RMS
information
can
be
accessed
for
additional
insight.
with
weights),
and
then
querying
per-bin
statistics
or
drawing
the
profile
for
visualization.
Related
classes
include
TProfile2D
for
two-dimensional
profiling.
TProfile
is
widely
used
in
high-energy
physics
analyses
to
study
mean
trends
and
calibrations.