Hello,
I have two histograms plotted with their respective error bars. I am calculating the overlapping area between the two histograms by using the information from each bin and integrating it over the entire range to get the area. I would like to calculate the uncertainty on the overlapping area, is there any way in ROOT which can help me to calculate it ?
Thank you
@moneta can you have a look? Thank you!
Hi,
it looks like the Add method with a wight -1 can easily display the overlapping area (https://root.cern.ch/doc/master/classTH1.html#a6e3008f571628f0c9d17d754c8b88730).
h1.Add(h2, -1);
Cheers,
D
Hello,
Yes, you are right. I have got the value for the overlapping area of for the two histograms, but I am looking to calculate the uncertainty in the value I get. Would that be possible by using "Sumw2() for both the individual histograms and the use it for the overlapping area ?
Thank you
Best,
Shreya
Hi,
the difference you obtain will have the proper uncertainty.
D
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.