Skip to content

Commit 4b9a947

Browse files
committed
Fixed cpu number
1 parent bdcfd26 commit 4b9a947

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

MC/bin/o2dpg_sim_workflow.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -841,15 +841,16 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True, runcommand=True):
841841

842842
QEDdigiargs = ""
843843
if includeQED:
844+
# recompute the number of workers to increase CPU efficiency
845+
NWORKERS_TF = compute_n_workers(INTRATE, COLTYPE, n_workers_user = NWORKERS) if (not args.force_n_workers) else NWORKERS
846+
844847
qedneeds=[GRP_TASK['name'], PreCollContextTask['name']]
845-
QED_task=createTask(name='qedsim_'+str(tf), needs=qedneeds, tf=tf, cwd=timeframeworkdir, cpu='1')
848+
QED_task=createTask(name='qedsim_'+str(tf), needs=qedneeds, tf=tf, cwd=timeframeworkdir, cpu=NWORKERS_TF)
846849
########################################################################################################
847850
#
848851
# ATTENTION: CHANGING THE PARAMETERS/CUTS HERE MIGHT INVALIDATE THE QED INTERACTION RATES USED ELSEWHERE
849852
#
850853
########################################################################################################
851-
# recompute the number of workers to increase CPU efficiency
852-
NWORKERS_TF = compute_n_workers(INTRATE, COLTYPE, n_workers_user = NWORKERS) if (not args.force_n_workers) else NWORKERS
853854

854855
# determine final conf key for QED simulation
855856
QEDBaseConfig = "GeneratorExternal.fileName=$O2_ROOT/share/Generators/external/QEDLoader.C;QEDGenParam.yMin=-7;QEDGenParam.yMax=7;QEDGenParam.ptMin=0.001;QEDGenParam.ptMax=1.;QEDGenParam.xSectionHad="+str(XSecSys[COLTYPE])+";QEDGenParam.Z="+str(Zsys[COLTYPE])+";QEDGenParam.cmEnergy="+str(ECMS)+";Diamond.width[2]=6.;"

0 commit comments

Comments
 (0)