I have had some trouble with accessing a histogram from a root file that has a canvas in it. I have followed several recipes found online, but none worked for me. I would ultimately like to get the TH2D and do some processing on it (projections, fits etc).
I attach the file I want to read and my code with the different versions of solutions I’ve tried. Solutions 1 and 3 give me an empty histogram of the correct range in the axes, while 2 and 4 give me a segmentation violation.
It is “Image - Iteration: 0”. You re right, it is a bit odd, I wouldn’t really go for that, but it is written in the file from a third party software which uses ROOT (so not my choice).