I have a small cxx program that compiles and runs ROOT code.
I would like to be able to retrieve the output generated when I use ProcessLine method inside my compiled program. For example, when I do this, I get “Hello” word through my console.
You can try something like the code shown below, but there are probably better ways to do it without needing to call gROOT->ProcessLine in your code. Can you be more specific?
The answer I was looking for is more connected with @bellenot , so that I have myOutput available in the compiled code, but initialised using gROOT->ProcessLine.