Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions MC/bin/o2dpg_sim_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,9 @@ def extractVertexArgs(configKeyValuesStr, finalDiamondDict):

SKIPMODULES = " ".join(["--skipModules"] + args.skipModules) if len(args.skipModules) > 0 else ""
SIMENGINE=args.e
# Geant4 is loaded by dlopen and needs a glibc static TLS reserve. It is set per task, because the global
# environment does not replace a GLIBC_TUNABLES that already exists, as it does truncated in GRID jobs.
GEANT4_TASK_ENV={'GLIBC_TUNABLES': 'glibc.rtld.optional_static_tls=32768'}
BFIELD=args.field
RNDSEED=args.seed # typically the argument should be the jobid, but if we get None the current time is used for the initialisation
random.seed(RNDSEED)
Expand Down Expand Up @@ -787,6 +790,7 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True, runcommand=True):

if not isActive('all'):
BKGtask['cmd'] += ' --readoutDetectors ' + " ".join(activeDetectors)
BKGtask['env'] = dict(GEANT4_TASK_ENV)

workflow['stages'].append(BKGtask)

Expand Down Expand Up @@ -991,6 +995,7 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True, runcommand=True):
+ ' --seed ' + str(TFSEED) + ' -n ' + str(NSIGEVENTS) \
+ ' --detectorList ' + args.detectorList \
+ ' --fromCollContext collisioncontext.root:' + signalprefix
SGNGENtask['env'] = dict(GEANT4_TASK_ENV)
if GENERATOR=="hepmc":
SGNGENtask['cmd'] += "; RC=$?; ${O2DPG_ROOT}/UTILS/UpdateHepMCEventSkip.sh ../HepMCEventSkip.json " + str(tf) + '; [[ ${RC} == 0 ]]'
if sep_event_mode == True:
Expand Down Expand Up @@ -1021,6 +1026,7 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True, runcommand=True):
SGNtask['cmd'] += ' --readoutDetectors ' + " ".join(activeDetectors)

SGNtask['cmd'] += ' --fromCollContext collisioncontext.root'
SGNtask['env'] = dict(GEANT4_TASK_ENV)
workflow['stages'].append(SGNtask)

# some tasks further below still want geometry + grp in fixed names, so we provide it here
Expand Down
Loading