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?
Hi,
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 https://root.cern.ch/doc/v608/classTH3.html#a8da3424208d450620f0797f2ee6ab07c
Lorenzo
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.