Skip to content

Commit 16daa02

Browse files
noferinisawenzel
authored andcommitted
fix in tof matcher MC workflow
1 parent 0b3bf68 commit 16daa02

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

MC/bin/o2dpg_sim_workflow.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ def getDPL_global_options(bigshm=False):
531531
INTRATE=200000 #Hz ???
532532

533533
# TOF -> "--use-ccdb-tof" (alternatively with CCCDBManager "--ccdb-tof-sa")
534-
simsoption=' --sims ' + ('bkg,'+signalprefix if doembedding else signalprefix) + ' --use-ccdb-tof '
534+
simsoption=' --sims ' + ('bkg,'+signalprefix if doembedding else signalprefix)
535535

536536
# each timeframe should be done for a different bunch crossing range, depending on the timeframe id
537537
orbitsPerTF = 256
@@ -645,6 +645,16 @@ def createRestDigiTask(name, det='ALLSMALLER'):
645645
workflow['stages'].append(t)
646646
return t
647647

648+
elif det=='TOF':
649+
if usebkgcache:
650+
tneeds += [ BKG_HITDOWNLOADER_TASKS[det]['name'] ]
651+
t = createTask(name=name, needs=tneeds,
652+
tf=tf, cwd=timeframeworkdir, lab=["DIGI","SMALLDIGI"], cpu='1')
653+
t['cmd'] = ('','ln -nfs ../bkg_Hits' + str(det) + '.root . ;')[doembedding]
654+
t['cmd'] += '${O2_ROOT}/bin/o2-sim-digitizer-workflow --use-ccdb-tof ' + getDPL_global_options() + ' -n ' + str(args.ns) + simsoption + ' --onlyDet ' + str(det) + ' --interactionRate ' + str(INTRATE) + ' --incontext ' + str(CONTEXTFILE) + ' --disable-write-ini' + putConfigValuesNew(["MFTAlpideParam, ITSAlpideParam, ITSDigitizerParam"])
655+
workflow['stages'].append(t)
656+
return t
657+
648658
else:
649659
if usebkgcache:
650660
tneeds += [ BKG_HITDOWNLOADER_TASKS[det]['name'] ]

0 commit comments

Comments
 (0)