Home | News | Documentation | Download

Can we divide TGraphAssymErrors to TH1


#1

Hi,

I have some data root file, which is in TGraphAssymErrors form. Also I have generated mc simulation data, which is in TH1 form. I want to form ratio plot of Data/MC. Also I have to add the uncertainties on this plot,
e.g. by putting the data error bars as before and by showing the stat. uncertainty of the
MC prediction as band (or error bars) around 1.
Is there a way to do it?

Thanks in advance
Aayushi


#2

ROOT provides a TRatioPlot class which might help you in this task. Have a look at the documentation to see if it is what you are looking for.


#3

Hi
I have looked at it, but I think TRatioPlot() requires two histograms for division.
Do I have to convert TGraphAssymErrors to TH1?
Thanks
Aayushi


#4

I not aware of a ROOT class allowing division between a TH1 and a TGraph. And I could not think how to do it anyway as TGraph can be any collection of points, not even ordered …