Skip to content

Commit

Permalink
Properly quote configKeyValues; Be clear that full paths required for…
Browse files Browse the repository at this point in the history
… ini files
  • Loading branch information
sawenzel committed Jul 22, 2021
1 parent 062231d commit 34ca065
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions MC/bin/o2dpg_sim_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
parser.add_argument('-gen',help='generator: pythia8, extgen', default='')
parser.add_argument('-proc',help='process type: inel, dirgamma, jets, ccbar, ...', default='')
parser.add_argument('-trigger',help='event selection: particle, external', default='')
parser.add_argument('-ini',help='generator init parameters file, for example: ${O2DPG_ROOT}/MC/config/PWGHF/ini/GeneratorHF.ini', default='')
parser.add_argument('-confKey',help='generator or trigger configuration key values, for example: GeneratorPythia8.config=pythia8.cfg', default='')
parser.add_argument('-ini',help='generator init parameters file (full paths required), for example: ${O2DPG_ROOT}/MC/config/PWGHF/ini/GeneratorHF.ini', default='')
parser.add_argument('-confKey',help='generator or trigger configuration key values, for example: "GeneratorPythia8.config=pythia8.cfg;A.x=y"', default='')

parser.add_argument('-interactionRate',help='Interaction rate, used in digitization', default=-1)
parser.add_argument('-eCM',help='CMS energy', default=-1)
Expand All @@ -53,8 +53,8 @@
parser.add_argument('-nb',help='number of background events / timeframe', default=20)
parser.add_argument('-genBkg',help='embedding background generator', default='') #pythia8, not recomended: pythia8hi, pythia8pp
parser.add_argument('-procBkg',help='process type: inel, ..., do not set it for Pythia8 PbPb', default='heavy_ion')
parser.add_argument('-iniBkg',help='embedding background generator init parameters file', default='${O2DPG_ROOT}/MC/config/common/ini/basic.ini')
parser.add_argument('-confKeyBkg',help='embedding background configuration key values, for example: GeneratorPythia8.config=pythia8bkg.cfg', default='')
parser.add_argument('-iniBkg',help='embedding background generator init parameters file (full path required)', default='${O2DPG_ROOT}/MC/config/common/ini/basic.ini')
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')
Expand Down Expand Up @@ -177,7 +177,7 @@ def getDPL_global_options(bigshm=False):

CONFKEYBKG=''
if args.confKeyBkg!= '':
CONFKEYBKG=' --configKeyValues ' + args.CONFKEYBKG
CONFKEYBKG=' --configKeyValues "' + args.CONFKEYBKG + '"'

# Background PYTHIA configuration
BKG_CONFIG_task=createTask(name='genbkgconf')
Expand Down Expand Up @@ -272,7 +272,7 @@ def getDPL_global_options(bigshm=False):
INIFILE=' --configFile ' + args.ini
CONFKEY=''
if args.confKey!= '':
CONFKEY=' --configKeyValues ' + args.confKey
CONFKEY=' --configKeyValues "' + args.confKey + '"'
PROCESS=args.proc
TRIGGER=''
if args.trigger != '':
Expand Down

0 comments on commit 34ca065

Please sign in to comment.