Skip to content

Commit 7262248

Browse files
committed
We need to tpc-clusterize at least 2 sectors
Otherwise the cluster branch get's an invalid name and we mess up the merging step. (Bug in O2).
1 parent 5f21082 commit 7262248

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

MC/bin/o2dpg_sim_workflow.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,13 +440,14 @@ def createRestDigiTask(name, det='ALLSMALLER'):
440440
if not args.combine_tpc_clusterization:
441441
# TODO: check value for MaxTimeBin; A large value had to be set tmp in order to avoid crashes based on "exceeding timeframe limit"
442442
# We treat TPC clusterization in multiple (sector) steps in order to stay within the memory limit
443+
# We seem to be needing to ask for 2 sectors at least, otherwise there is a problem with the branch naming.
443444
tpcclustertasks=[]
444-
for s in range(0,35):
445-
taskname = 'tpcclusterpart' + str(s) + '_' + str(tf)
445+
for s in range(0,35,2):
446+
taskname = 'tpcclusterpart' + str((int)(s/2)) + '_' + str(tf)
446447
tpcclustertasks.append(taskname)
447448
tpcclussect = createTask(name=taskname, needs=[TPCDigitask['name']], tf=tf, cwd=timeframeworkdir, lab=["RECO"], cpu='1', mem='2000')
448-
tpcclussect['cmd'] = 'o2-tpc-chunkeddigit-merger --tpc-sectors ' + str(s) + ' --rate 1000 --tpc-lanes ' + str(NWORKERS)
449-
tpcclussect['cmd'] += ' | o2-tpc-reco-workflow ' + getDPL_global_options() + ' --input-type digitizer --output-type clusters,send-clusters-per-sector --outfile tpc-native-clusters-part' + str(s) + '.root --tpc-sectors ' + str(s) + ' --configKeyValues "GPU_global.continuousMaxTimeBin=100000;GPU_proc.ompThreads=1"'
449+
tpcclussect['cmd'] = 'o2-tpc-chunkeddigit-merger --tpc-sectors ' + str(s)+','+str(s+1) + ' --rate 1000 --tpc-lanes ' + str(NWORKERS)
450+
tpcclussect['cmd'] += ' | o2-tpc-reco-workflow ' + getDPL_global_options() + ' --input-type digitizer --output-type clusters,send-clusters-per-sector --outfile tpc-native-clusters-part' + str((int)(s/2)) + '.root --tpc-sectors ' + str(s)+','+str(s+1) + ' --configKeyValues "GPU_global.continuousMaxTimeBin=100000;GPU_proc.ompThreads=1"'
450451
tpcclussect['env'] = { "OMP_NUM_THREADS" : "1" } # we disable OpenMP since running in scalar mode anyway
451452
workflow['stages'].append(tpcclussect)
452453

0 commit comments

Comments
 (0)