Skip to content

Commit 31e0844

Browse files
committed
MCH reco needs access to kinematics file
1 parent 77ea2a6 commit 31e0844

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

MC/bin/o2dpg_sim_workflow.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,14 @@ def createRestDigiTask(name, det='ALLSMALLER'):
578578
MFTRECOtask['cmd'] = 'o2-mft-reco-workflow ' + getDPL_global_options()
579579
workflow['stages'].append(MFTRECOtask)
580580

581+
# MCH reco: needing access to kinematics ... so some extra logic needed here
582+
mchreconeeds = [det_to_digitask["MCH"]['name']]
583+
if usebkgcache:
584+
mchreconeeds += [ BKG_KINEDOWNLOADER_TASK['name'] ]
585+
581586
MCHRECOtask = createTask(name='mchreco_'+str(tf), needs=[det_to_digitask["MCH"]['name']], tf=tf, cwd=timeframeworkdir, lab=["RECO"], mem='1500')
582-
MCHRECOtask['cmd'] = 'o2-mch-reco-workflow ' + getDPL_global_options()
587+
MCHRECOtask['cmd'] = ('','ln -nfs ../bkg_Kine.root . ;')[doembedding]
588+
MCHRECOtask['cmd'] += 'o2-mch-reco-workflow ' + getDPL_global_options()
583589
workflow['stages'].append(MCHRECOtask)
584590

585591
MIDRECOtask = createTask(name='midreco_'+str(tf), needs=[det_to_digitask["MID"]['name']], tf=tf, cwd=timeframeworkdir, lab=["RECO"], mem='1500')

0 commit comments

Comments
 (0)