I am a beginner with root and I am trying to project a TH2D histogram but instead of projecting it on one of the histogram axis with ProjectionX() or ProjectionY(), I would like to project it to a specific line not aligned to the initial axis. Is that possible?
The plot I join illustrates what I am trying to do. Another solution would be to realign the axis of the histogram itself in order to have the source more or less in the middle of the plot aligned parallel to RawY (according to the black line drawn in the plot). Then using ProjectionX() would be fine and easy. However I don’t know how to do that…
Thank you very much if someone can give me any help or hint!
This type of projection is not supported (in particular because it would not be precise due to binning problems in the transformation). The solution is much simpler: Start from a TTree
and instead of filling a TH2 with Fill(x,y), do,eg to rotate with theta=30