TH3 Projection is rebinned?

Hi, how can I make sure that a TH2 “xy” projection of a TH3 keeps the same x-y binning as the original TH3?

I believe this is the default behavior, do you have an example where this does not occur?


Keeping the same binning is the default behaviour when the histogram has no range set in its axis, otherwise the projected axis will be defined by the axis ranges.
To keep the same binning you can use the option “o”, for example:

auto hxy = h3->Project3D(“XY O”);

see also


1 Like

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