Rescaling

Dear ROOTers,
How can I convert the scale of Y-axis? I have MeV/mm and I want to convert it in MeV*cm2/g.
Thanks in advance,
cc1.root (217 KB)

use TH1::Scale(double scale_factor)

Rene

Hi
I have tried. But it produces error. Can you tell me please how it will work?
Thanks in advance,

Please post teh shortest possible running script reproducing your problem.

Rene

I tried
TH1::Scale(double 10.1)
error is
Error: Symbol double10 is not defined in current scope (tmpfile):1:
Error: Failed to evaluate double10.1
*** Interpreter error recovered ***

Ouih! Ouih! Ouih! I was refering to the function prototype. Simply do myhist->Scale(10.1)

Rene

Hi,
Thank you sir.
Actually, I want what you do before. But I don’t know how to do this. So, Sir, can you please tell me how can I do this?
TH1::Scale(Double ???)
I want to know what is write in the place of “???”.
I know this question is not good, but I am not able to do this.
Thanks in adavce,

see the answer in my previous post.

Rene