Skip to content

Commit 3980130

Browse files
committed
GRP task reordering and more options
1 parent 096cf00 commit 3980130

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

MC/bin/o2dpg_sim_workflow.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,15 @@ def getDPL_global_options(bigshm=False):
249249
if (includeLocalQC or includeFullQC) and not isdir(qcdir):
250250
mkdir(qcdir)
251251

252+
# create the GRPs
253+
orbitsPerTF=256
254+
GRP_TASK = createTask(name='grpcreate', cpu='0')
255+
GRP_TASK['cmd'] = 'o2-grp-simgrp-tool createGRPs --run ' + str(args.run) + ' --publishto ${ALICEO2_CCDB_LOCALCACHE:-.ccdb} -o grp --hbfpertf ' + str(orbitsPerTF) + ' --field ' + args.field
256+
GRP_TASK['cmd'] += ' --readoutDets ' + " ".join(activeDetectors) + ' --print '
257+
if len(args.bcPatternFile) > 0:
258+
GRP_TASK['cmd'] += ' --bcPatternFile ' + str(args.bcPatternFile)
259+
workflow['stages'].append(GRP_TASK)
260+
252261
if doembedding:
253262
if not usebkgcache:
254263
# ---- do background transport task -------
@@ -394,11 +403,6 @@ def getDPL_global_options(bigshm=False):
394403
MATBUD_DOWNLOADER_TASK['cmd'] = '[ -f matbud.root ] || ${O2_ROOT}/bin/o2-ccdb-downloadccdbfile --host http://alice-ccdb.cern.ch/ -p GLO/Param/MatLUT -o matbud.root --no-preserve-path --timestamp ' + str(args.timestamp)
395404
workflow['stages'].append(MATBUD_DOWNLOADER_TASK)
396405

397-
orbitsPerTF=256
398-
GRP_TASK = createTask(name='grpcreate', cpu='0')
399-
GRP_TASK['cmd'] = 'o2-grp-simgrp-tool createGRPs --run ' + str(args.run) + ' --publishto ${ALICEO2_CCDB_LOCALCACHE:-.ccdb} -o grp --hbfpertf ' + str(orbitsPerTF) + ' --field ' + args.field
400-
workflow['stages'].append(GRP_TASK)
401-
402406
# loop over timeframes
403407
for tf in range(1, NTIMEFRAMES + 1):
404408
TFSEED = SIMSEED + tf

0 commit comments

Comments
 (0)