@@ -539,6 +539,7 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True):
539539
540540 # translate here collision type to PDG
541541 COLTYPE = args .col
542+ havePbPb = (COLTYPE == 'PbPb' or (doembedding and COLTYPEBKG == "PbPb" ))
542543
543544 if COLTYPE == 'pp' :
544545 PDGA = 2212 # proton
@@ -668,7 +669,8 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True):
668669 signalneeds = signalneeds + [ BKGtask ['name' ] ]
669670 else :
670671 signalneeds = signalneeds + [ BKG_HEADER_task ['name' ] ]
671- SGNtask = createTask (name = 'sgnsim_' + str (tf ), needs = signalneeds , tf = tf , cwd = 'tf' + str (tf ), lab = ["GEANT" ], relative_cpu = 7 / 8 , n_workers = NWORKERS , mem = '2000' )
672+ sgnmem = 6000 if COLTYPE == 'PbPb' else 4000
673+ SGNtask = createTask (name = 'sgnsim_' + str (tf ), needs = signalneeds , tf = tf , cwd = 'tf' + str (tf ), lab = ["GEANT" ], relative_cpu = 7 / 8 , n_workers = NWORKERS , mem = str (sgnmem ))
672674 SGNtask ['cmd' ]= '${O2_ROOT}/bin/o2-sim -e ' + str (SIMENGINE ) + ' ' + str (MODULES ) + ' -n ' + str (NSIGEVENTS ) + ' --seed ' + str (TFSEED ) \
673675 + ' --field ' + str (BFIELD ) + ' -j ' + str (NWORKERS ) + ' -g ' + str (GENERATOR ) \
674676 + ' ' + str (TRIGGER ) + ' ' + str (CONFKEY ) + ' ' + str (INIFILE ) \
@@ -817,8 +819,9 @@ def putConfigValuesNew(listOfMainKeys=[], localCF = {}):
817819 if usebkgcache :
818820 tpcdigineeds += [ BKG_HITDOWNLOADER_TASKS ['TPC' ]['name' ] ]
819821
822+ tpcdigimem = 12000 if havePbPb else 9000
820823 TPCDigitask = createTask (name = 'tpcdigi_' + str (tf ), needs = tpcdigineeds ,
821- tf = tf , cwd = timeframeworkdir , lab = ["DIGI" ], cpu = NWORKERS , mem = '9000' )
824+ tf = tf , cwd = timeframeworkdir , lab = ["DIGI" ], cpu = NWORKERS , mem = str ( tpcdigimem ) )
822825 TPCDigitask ['cmd' ] = ('' ,'ln -nfs ../bkg_HitsTPC.root . ;' )[doembedding ]
823826 TPCDigitask ['cmd' ] += '${O2_ROOT}/bin/o2-sim-digitizer-workflow ' + getDPL_global_options () + ' -n ' + str (args .ns ) + simsoption \
824827 + ' --onlyDet TPC --TPCuseCCDB --interactionRate ' + str (INTRATE ) + ' --tpc-lanes ' + str (NWORKERS ) \
@@ -961,7 +964,7 @@ def getDigiTaskName(det):
961964 + tpc_corr_scaling_options
962965 workflow ['stages' ].append (TPCRECOtask )
963966
964- havePbPb = ( COLTYPE == 'PbPb' or ( doembedding and COLTYPEBKG == "PbPb" ))
967+
965968 ITSMemEstimate = 12000 if havePbPb else 2000 # PbPb has much large mem requirement for now (in worst case)
966969 ITSRECOtask = createTask (name = 'itsreco_' + str (tf ), needs = [getDigiTaskName ("ITS" )],
967970 tf = tf , cwd = timeframeworkdir , lab = ["RECO" ], cpu = '1' , mem = str (ITSMemEstimate ))
0 commit comments