System ()

sorry, ath this point, one question more…

calling
system (“C:\root\bin\root.exe C:\root\tutorials\SFHped_plot_v0.C”);
my code opens a ROOT terminal a properly runs the script.
Is there any way to make the ROOT terminal close automatically, too?

thanks!

Hi,

The “-q” argument means “quit when done”, as in system (“C:\root\bin\root.exe -q C:\root\tutorials\SFHped_plot_v0.C”); You might also want to use -l. See root --help.

Cheers, Axel.