Hi,
I am trying to plot 2 histograms that are on different root file on the same canvas.
tree1.Draw(‘Electron.Eta’)
tree1.Draw(‘Electron.Phi’,‘Same’)
If two different histograms are on the same file, I am able to plot them together like above example.
tree1.Draw(‘Electron.Eta’)
tree2.Draw(‘Electron.Eta’,‘Same’)
But in this example, I cannot plot them together. Histograms are in the branch of the TTree. I couldn’t find any other method to plot the histograms, and with this method I am able to plot them, but I cannot plot them together. How can I fix this problem or do you suggest me any other method? Thank you in advance.