Skip to content
Draft
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
7 changes: 6 additions & 1 deletion MC/bin/o2dpg_sim_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,8 @@ def putConfigValues(listOfMainKeys=[], localCF = {}, globalTFConfig = True):
tpcLocalCF['TPCCorrMap.lumiInst'] = str(CTPSCALER * lumiInstFactor)

tpcdigimem = 12000 if havePbPb else 9000
# the scaled distortions are computed once per job and shared through a file by all digitizers
tpcDistortionFile = tpcDistortionType == 2 and option_if_available('o2-sim-digitizer-workflow', '--tpc-distortion-file') != ''
TPCDigitask=createTask(name='tpcdigi_'+str(tf), needs=tpcdigineeds,
tf=tf, cwd=timeframeworkdir, lab=["DIGI"], cpu=NWORKERS_TF, mem=str(tpcdigimem))
TPCDigitask['cmd'] = ('','ln -nfs ../bkg_HitsTPC.root . ;')[doembedding]
Expand All @@ -1169,9 +1171,12 @@ def putConfigValues(listOfMainKeys=[], localCF = {}, globalTFConfig = True):
+ ' --onlyDet TPC --TPCuseCCDB --interactionRate ' + str(INTRATE) + ' --tpc-lanes ' + str(NWORKERS_TF) \
+ ' --incontext ' + str(CONTEXTFILE) + ' --disable-write-ini --early-forward-policy always --forceSelectedDets ' \
+ ' --tpc-distortion-type ' + str(tpcDistortionType) \
+ ' --n-threads-distortions 1 ' \
+ ' --n-threads-distortions ' + (str(NWORKERS_TF) if tpcDistortionFile else '1') + ' ' \
+ putConfigValues(["TPCGasParam","TPCGEMParam","TPCEleParam","TPCITCorr","TPCDetParam"],
localCF=tpcLocalCF)
if tpcDistortionFile:
# only one lane computes the distortions while the others wait, so it gets all threads
TPCDigitask['cmd'] += ' --tpc-distortion-file ../tpc_scaled_distortions.root'
TPCDigitask['cmd'] += (' --tpc-chunked-writer','')[args.no_tpc_digitchunking]
TPCDigitask['cmd'] += ('',' --disable-mc')[args.no_mc_labels]
# we add any other extra command line options (power user customization) with an environment variable
Expand Down
Loading