From 77093a5c80d8f0baa4100d9058875ebf6342b3b5 Mon Sep 17 00:00:00 2001 From: Benedikt Volkel Date: Fri, 22 Mar 2024 17:26:02 +0100 Subject: [PATCH] [SimWF] Protect the -e argument Without this, passing -embedding would work and produce a workflow.json. However, the resulting WF has nothing to with embedding, since the real flag for that has 2 dashed: --embedding What really happened was that the engine would now be "mbedding" So far there are no clashes for -j or -o which are also valid arguments. --- MC/bin/o2dpg_sim_workflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MC/bin/o2dpg_sim_workflow.py b/MC/bin/o2dpg_sim_workflow.py index 56a05499c..d7c1c23f1 100755 --- a/MC/bin/o2dpg_sim_workflow.py +++ b/MC/bin/o2dpg_sim_workflow.py @@ -85,7 +85,7 @@ parser.add_argument('-confKeyBkg',help='embedding background configuration key values, for example: "GeneratorPythia8.config=pythia8bkg.cfg"', default='') parser.add_argument('-colBkg',help='embedding background collision system', default='PbPb') -parser.add_argument('-e',help='simengine', default='TGeant4') +parser.add_argument('-e',help='simengine', default='TGeant4', choices=['TGeant4', 'TGeant3', 'TFluka']) parser.add_argument('-tf',help='number of timeframes', default=2) parser.add_argument('--production-offset',help='Offset determining bunch-crossing ' + ' range within a (GRID) production. This number sets first orbit to '