I have an efficiency histogram. I want to divide an energy histogram with the efficiency and used this -
However, this is not working since the binning for both is different. Is there a way to use something like
Eval() for the histogram directly without fitting so that I can read the values from h1 and divide the corresponding values of h2?
I am sure there is a simple way. Can anyone please help with any suggestions?
Please help! Thank you for your time!
ROOT Version: 6.18/04
Compiler: Visual Studio Code
Maybe @moneta knows a simple way
I think there is nothing like Eval for histograms, but you can try to do something like
this should work.
You could convert your efficiency histogram to a TGraph first.
Then, you go to your energy histogram and bin by bin, you divide the bin content by
Thank you for getting back @Dilicus and @ferhue. Both of your suggestions worked like a charm. However, I ended up using @ferhue’s suggestion which was exactly what I was looking for.
Thank you for your time and help!