Hi all,
I have a question regarding the handle of macros with the new version of ROOT.
IIn ROOT5, I had a macro to load on memory my code, so I could call it several times later with different configurations. E.g.
setup.C =
[code]{
gROOT->ProcessLine (".x $ROOTCOREDIR/scripts/load_packages.C");
gROOT->LoadMacro("./plots.cxx+");
plots *p = new plots();delete p;
}[/code]
When I wanted to load root, I simply used to do “root setup.c” and then, I could call instances of the code as “p= new plots( …)” This was particularly useful for sending root batch jobs via “root -b -q setup.c run.c”.
However, in ROOT6, I cannot do that. Loading the macro via ‘argument of ROOT’ does not load the function to memory anymore, it fails when calling the instances with an "unknown type name ‘plot’ "
I recall having read that the handling of macros have changed and now it has to be done in a different way, but I could not find this way anywhere.
Do you know how I can do this now? Or do you have any other suggestion?
Thank you!