Newbie
August 16, 2020, 12:53am
1
Dear, is there a simple way to translate a TH1 along the x-axis using a constant? thanks!
@moneta can perhaps give an answer here? Thanks!
moneta
August 18, 2020, 4:54pm
3
Hi,
No there is not such functioning ROOT. You need to create a new histogram and then copy the bin content in the new one using for example TH1::SetBinContent
Lorenzo
yus
August 18, 2020, 5:41pm
4
I believe I answered a follow-up question on this from the same user yesterday:
Dear, is there a simple way to shift a TH1 along the x-axis with a fixed constant?
i.e. every bin of the histogram moves with a constant value C_x to the left or right depending on the sign of the constant