Convert TGraphError to TH1 histogram

I have some data I draw it by TGraphError and also I have data I did by TH1 histogram, and then I want to multiply the TGraphError data with the TH1 data .(I need to convert this TGraphError to TH1 haistogram ) Is there any way for doing that?


  1. Book a 1D histogram with the appropriate number of bins and X axis limits
  2. Loop on the TGraphError points (x[i], y[i]) and fill the previously booked histogram with x[i] for the x value and y[i] as weight.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.