Skip to content

Commit 2791171

Browse files
sawenzelalcaliva
authored andcommitted
no vertexing for evtpool (#1849)
(cherry picked from commit 324594a)
1 parent c66eb32 commit 2791171

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

MC/bin/o2dpg_sim_workflow.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,9 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True):
477477
includeQED = (COLTYPE == 'PbPb' or (doembedding and COLTYPEBKG == "PbPb")) or (args.with_qed == True)
478478
signalprefix='sgn'
479479

480+
# No vertexing for event pool generation
481+
vtxmode = 'kNoVertex' if args.make_evtpool else 'kCCDB'
482+
480483
# preproduce the collision context / timeframe structure for all timeframes at once
481484
precollneeds=[GRP_TASK['name']]
482485
NEventsQED=10000 # max number of QED events to simulate per timeframe
@@ -499,7 +502,7 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True):
499502
+ ' --seed ' + str(RNDSEED) \
500503
+ ' --noEmptyTF --first-orbit ' + str(args.first_orbit - args.orbits_early) \
501504
+ ' --extract-per-timeframe tf:sgn' \
502-
+ ' --with-vertices kCCDB' \
505+
+ ' --with-vertices ' + vtxmode \
503506
+ ' --maxCollsPerTF ' + str(args.ns)
504507

505508
PreCollContextTask['cmd'] += ' --bcPatternFile ccdb' # <--- the object should have been set in (local) CCDB
@@ -777,8 +780,6 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True):
777780
cmd = 'export HEPMCEVENTSKIP=$(${O2DPG_ROOT}/UTILS/ReadHepMCEventSkip.sh ../HepMCEventSkip.json ' + str(tf) + ');'
778781
SGNGENtask['cmd'] = cmd
779782

780-
# No vertexing for event pool generation
781-
vtxmode = 'kNoVertex' if args.make_evtpool else 'kCCDB'
782783

783784
SGNGENtask['cmd'] +='${O2_ROOT}/bin/o2-sim --noGeant -j 1 --field ccdb --vertexMode ' + vtxmode \
784785
+ ' --run ' + str(args.run) + ' ' + str(CONFKEY) + str(TRIGGER) \

0 commit comments

Comments
 (0)