Skip to content

Commit faa4343

Browse files
MC: store the MC truth in the TPC residuals whenever MC labels are on
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 82f09e2 commit faa4343

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
@@ -1866,6 +1866,9 @@ def getDigiTaskName(det):
18661866
'--tracking-sources-map-extraction',
18671867
default_value='ITS-TPC'))
18681868

1869+
# store the MC truth of the residual tracks (branch trkMC of the trackData tree) whenever MC labels are available
1870+
scdcalib_mc_option = '' if args.no_mc_labels else option_if_available('o2-tpc-scdcalib-interpolation-workflow', '--enable-mc', envfile=async_envfile)
1871+
18691872
SCDCALIBtask = createTask(name='scdcalib_'+str(tf), needs=[PVFINDERtask['name']], tf=tf, cwd=timeframeworkdir, lab=["CALIB"], mem='4000')
18701873
SCDCALIBtask['cmd'] = task_finalizer(
18711874
[ '${O2_ROOT}/bin/o2-tpc-scdcalib-interpolation-workflow',
@@ -1875,7 +1878,8 @@ def getDigiTaskName(det):
18751878
'--tracking-sources ' + scdcalib_track_sources,
18761879
'--tracking-sources-map-extraction ' + scdcalib_track_extraction,
18771880
'--sec-per-slot 1 ',
1878-
'--send-track-data'
1881+
'--send-track-data',
1882+
scdcalib_mc_option
18791883
])
18801884
workflow['stages'].append(SCDCALIBtask)
18811885

@@ -1898,7 +1902,8 @@ def getDigiTaskName(det):
18981902
'--enable-track-input',
18991903
'--output-dir ./',
19001904
'--output-type ' + scdaggreg_outputtype,
1901-
'--meta-output-dir /dev/null'
1905+
'--meta-output-dir /dev/null',
1906+
scdcalib_mc_option
19021907
])
19031908
workflow['stages'].append(SCDAGGREGtask)
19041909

0 commit comments

Comments
 (0)