Skip to content

Commit 4aebb44

Browse files
MC: store the MC truth in the TPC residuals whenever MC labels are on (#2503)
With ALIEN_JDL_DOTPCRESIDUALEXTRACTION=1 the residual extraction and aggregation tasks run with --enable-mc unless --no-mc-labels is given, since the MC truth needs the MC labels of the ITS, TPC and ITS-TPC tracks. It stores the MC truth of the residual tracks as branch trkMC of the trackData tree. The option is passed only if the O2 version used for the reconstruction provides it. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent ae342a1 commit 4aebb44

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎MC/bin/o2dpg_sim_workflow.py‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1892,6 +1892,9 @@ def getDigiTaskName(det):
18921892
'--tracking-sources-map-extraction',
18931893
default_value='ITS-TPC'))
18941894

1895+
# store the MC truth of the residual tracks (branch trkMC of the trackData tree) whenever MC labels are available
1896+
scdcalib_mc_option = '' if args.no_mc_labels else option_if_available('o2-tpc-scdcalib-interpolation-workflow', '--enable-mc', envfile=async_envfile)
1897+
18951898
SCDCALIBtask = createTask(name='scdcalib_'+str(tf), needs=[PVFINDERtask['name']], tf=tf, cwd=timeframeworkdir, lab=["CALIB"], mem='4000')
18961899
SCDCALIBtask['cmd'] = task_finalizer(
18971900
[ '${O2_ROOT}/bin/o2-tpc-scdcalib-interpolation-workflow',
@@ -1901,7 +1904,8 @@ def getDigiTaskName(det):
19011904
'--tracking-sources ' + scdcalib_track_sources,
19021905
'--tracking-sources-map-extraction ' + scdcalib_track_extraction,
19031906
'--sec-per-slot 1 ',
1904-
'--send-track-data'
1907+
'--send-track-data',
1908+
scdcalib_mc_option
19051909
])
19061910
workflow['stages'].append(SCDCALIBtask)
19071911

@@ -1924,7 +1928,8 @@ def getDigiTaskName(det):
19241928
'--enable-track-input',
19251929
'--output-dir ./',
19261930
'--output-type ' + scdaggreg_outputtype,
1927-
'--meta-output-dir /dev/null'
1931+
'--meta-output-dir /dev/null',
1932+
scdcalib_mc_option
19281933
])
19291934
workflow['stages'].append(SCDAGGREGtask)
19301935

0 commit comments

Comments
 (0)