Horizontal scaling for histogram

Hello everyone,

I have a histogram in a root file, I want to add a horizontal factor (shift the histogram to the left),
I tried to do this
hist2 = 8 * hist1
But I get an error " invalid operands to binary expression (‘int’ and ‘TH1S *’)"
Is there a way to add in the horizontal factor?

A similar question was asked here: Shift bins under modulus

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