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?


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


That might be a stupid answer but:

1MeV = 0.001GeV

So if you do:


where x in in MeV

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


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