I’m pretty new to ROOT, and not sure if there’s a simple answer to this, but I figured this forum would be a good place to ask. If I’m mistaken, apologies in advance.
I have a ROOT macro. I can run the macro with an input argument of a configuration file using the ROOT interpreter, but the execution of my program is pretty slow. What I would like to do is compile my macro into an executable that has the ability to read in an argument so I can pass different configuration files.
Any advice is appreciated - I am using version 6.16.00.
Just write the macro with “main” as your main function (instead of using the same as the file name) and pass/use the arguments the same way as for any c++ program --and don’t forget to #include all the needed headers in your code. https://www.google.com/search?q=c%2B%2B+command+line+arguments