Skip to content

Commit 9d3835d

Browse files
committed
Make sure external configKeys are not lost
1 parent 68cc088 commit 9d3835d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MC/bin/o2dpg_sim_workflow.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def getDPL_global_options(bigshm=False):
177177

178178
CONFKEYBKG=''
179179
if args.confKeyBkg!= '':
180-
CONFKEYBKG=' --configKeyValues "' + args.CONFKEYBKG + '"'
180+
CONFKEYBKG=' --configKeyValues "' + args.confKeyBkg + '"'
181181

182182
# Background PYTHIA configuration
183183
BKG_CONFIG_task=createTask(name='genbkgconf')
@@ -194,7 +194,7 @@ def getDPL_global_options(bigshm=False):
194194
--process='+str(PROCESSBKG)
195195
# if we configure pythia8 here --> we also need to adjust the configuration
196196
# TODO: we need a proper config container/manager so as to combine these local configs with external configs etc.
197-
CONFKEYBKG='--configKeyValues "GeneratorPythia8.config=pythia8bkg.cfg"'
197+
CONFKEYBKG='--configKeyValues "GeneratorPythia8.config=pythia8bkg.cfg;' + args.confKeyBkg + '"'
198198

199199
workflow['stages'].append(BKG_CONFIG_task)
200200

@@ -380,7 +380,7 @@ def getDPL_global_options(bigshm=False):
380380
SGN_CONFIG_task['cmd'] = SGN_CONFIG_task['cmd'] + ' --weightPow=' + str(WEIGHTPOW)
381381
# if we configure pythia8 here --> we also need to adjust the configuration
382382
# TODO: we need a proper config container/manager so as to combine these local configs with external configs etc.
383-
CONFKEY='--configKeyValues "GeneratorPythia8.config=pythia8.cfg"'
383+
CONFKEY='--configKeyValues "GeneratorPythia8.config=pythia8.cfg'+';'+args.confKey+'"'
384384

385385
# elif GENERATOR == 'extgen': what do we do if generator is not pythia8?
386386
# NOTE: Generator setup might be handled in a different file or different files (one per

0 commit comments

Comments
 (0)