Hi,
Retrieving a TH2D histogram from a TGraph2D, how can I fix the bin number of the histogram?
It seems that by default the fHistogram from TGraph2d merges several points into one bin but I would like to have 1 value per bin (number of bins = equal to the number of points in my graph)
For example, in the image I join, the left plot corresponds to an histogram filled with the variables of my tree and the right plot corresponds to the histogram from the TGraph2d which is initially filled with the same variables as the histogram. Is the difference be coming only from this binning difference?
I would like to get the exact same histogram in both cases. The reason is I then need to apply a rotation which can not be applied to an histogram.
Thank you for your help,
Pierre Saouter
Diff_Histo_HistoFromGraph.pdf (47.4 KB)