I’m trying to load AtlasStyle in my python code, but nothing seems to work.I run the code on the lxplus, this means it is ROOT version 6.10 (and this means gROOT.SetStyle("ATLAS") is not working).
The last thing I tried was
from ROOT import * gROOT.LoadMacro("AtlasStyle.C")
because in another thread in this forum this was working for somebody. But it isn’t for me. I get the error:
from ROOT import * gROOT.LoadMacro("AtlasStyle.C")
^
SyntaxError: invalid syntax
If it helps I have got the atlasstyle-00-04-02 folder, which I used for my c++ makros (include “atlasstyle-00-04-02/AtlasStyle.h” and than in root: .L atlasstyle-00-04-02/AtlasStyle.C works fine)
Thank you for your answer.
I tried it like you said, but now the error I get is
Error in <TROOT::LoadMacro>: macro AtlasStyle.C not found in path .:/usr/share/root/macros:
In my usr/share dorectory is no root folder? I don’t have it installed at the moment, because the time I treid to install it, it failed and hence I can use the lxplus, I didn’t tried it again. Is there any other chance? If not, I will try to install ROOT tomorrow again.