Hi. I’ve ran into trouble of using hadd with TH2 with alphanumeric bins. I have histograms with X-axis has only alphanumeric bins and Y-axis a normal ones. When I tried to hadd them every bin on the X-axis got lumped together into a single bin. I used 5.34.25. I scanned the source code quickly and it seems to me that, unlike the TH1::Merge, TH2::Merge completely disregard the bin labels. Is this the intend behavior? Is there another way to combine them correctly (beside writing a full code to do it of course). Thank you in advance.
Yes, this functionality is missing for the 2d histogram. It would need to be implemented.
I have created a JIRA item for this issue sft.its.cern.ch/jira/browse/ROOT-7223
Thank you for reporting it
After this commit, root.cern.ch/gitweb/?p=root.git … 0c66741ebe, The ROOT master supports now the merge of TH2 (and also TH3) histograms with alphanumeric bins (i.e. with labels)