Converting MeV to GeV

Hi guys, I am using data from a tree and I am working with MeV, but I want to convert it to Gev on the x and the y axis. Could you tell me how please?

Hi Jozefina,

Welcome to ROOT forum!

Can you provide macro (or at least relevant peace of code) where histogram is drawn?

Regards,
Sergey

Hi @Jozefina_Gramatikova,
this is solved in Tree->draw for a wider range

right?

That might be a stupid answer but:

1MeV = 0.001GeV

So if you do:

tree->Draw("x")

where x in in MeV

To have it in GeV, seems to me, it is enough to do:

tree->Draw(0.001*x);

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