From 36aba81ab49b3c7bb07af5b3f249a4574618d8ec Mon Sep 17 00:00:00 2001 From: Sylvester Joosten <sjoosten@anl.gov> Date: Thu, 23 May 2019 11:49:16 -0500 Subject: [PATCH] updated launcher to automatically call h2root --- launcher/simc-launcher.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/launcher/simc-launcher.in b/launcher/simc-launcher.in index a3dc3e6..fe24243 100644 --- a/launcher/simc-launcher.in +++ b/launcher/simc-launcher.in @@ -94,5 +94,7 @@ with tempfile.TemporaryDirectory() as tmpdir: launcher.close() print('\nCalling SIMC, good luck!') subprocess.call(['sh', run_name]) - print('All done!') - #subprocess.call(['cp', run_name, '/tmp/']) +print('\nConverting output to ROOT') +os.chdir(output_dir) +subprocess.call(['h2root', '{conf}.rzdat'.format(conf=tmp_conf_name)) +print('All done!') -- GitLab