Dear experts,
I made a TH1D array to collect ProjectionX from a TH2D array, but all the hist (the ProjectionX) are the same as you can see here (1) and that is not expected. Indeed the corresponding 2D hist looks like this (2). All the codes are here (3), do you see what is wrong?
Regards
Your file correlation.cc has a syntax error. a “;” missing on the TFile line.
I fixed that but then, when I execute your macro, I get two empty canvases.
So it really seems that, along X, all these histograms give the same projection. Can that be explained theoretically ?
I also to rein interactively your histograms (plotted as LEGO) and it seems to confirm the projection are identical (I squeezed the histo to 2 bins only, the minimum we can do)
Here I used the ProfileX (1), and I have this plots (2). The ProfileX is in red on top of the 2D hist. My concern is the right red axis, it does not display the axis value. Do you see why?
Regards
thank you. I still wonder how can I properly spread the right axis to the entire pad? For ex. on the last plot, we can not read the number but we still have plenty of space, to we could spread it. Is there some normalization to do?
Regards