Skip to content

Commit 420119d

Browse files
MC: optional MC truth in the TPC residuals (ALIEN_JDL_DOTPCRESIDUALEXTRACTIONMC)
With ALIEN_JDL_DOTPCRESIDUALEXTRACTIONMC=1 (on top of ALIEN_JDL_DOTPCRESIDUALEXTRACTION=1) the residual extraction and aggregation tasks run with --enable-mc, which stores the MC truth of the residual tracks as branch trkMC of the trackData tree. Off by default; needs an O2 version whose residual writer and reader carry the MC truth. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 82f09e2 commit 420119d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎MC/bin/o2dpg_sim_workflow.py‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,8 @@ def extractVertexArgs(configKeyValuesStr, finalDiamondDict):
534534
includeAnalysis = args.include_analysis
535535
includeTPCResiduals=True if environ.get('ALIEN_JDL_DOTPCRESIDUALEXTRACTION') == '1' else False
536536
includeTPCSyncMode=True if environ.get('ALIEN_JDL_DOTPCSYNCMODE') == '1' else False
537+
# store the MC truth of the residual tracks (branch trkMC of the trackData tree); needs an O2 version with --enable-mc
538+
includeTPCResidualsMC=True if environ.get('ALIEN_JDL_DOTPCRESIDUALEXTRACTIONMC') == '1' else False
537539

538540
qcdir = "QC"
539541
if (includeLocalQC or includeFullQC) and not isdir(qcdir):
@@ -1875,7 +1877,8 @@ def getDigiTaskName(det):
18751877
'--tracking-sources ' + scdcalib_track_sources,
18761878
'--tracking-sources-map-extraction ' + scdcalib_track_extraction,
18771879
'--sec-per-slot 1 ',
1878-
'--send-track-data'
1880+
'--send-track-data',
1881+
'--enable-mc' if includeTPCResidualsMC else ''
18791882
])
18801883
workflow['stages'].append(SCDCALIBtask)
18811884

@@ -1898,7 +1901,8 @@ def getDigiTaskName(det):
18981901
'--enable-track-input',
18991902
'--output-dir ./',
19001903
'--output-type ' + scdaggreg_outputtype,
1901-
'--meta-output-dir /dev/null'
1904+
'--meta-output-dir /dev/null',
1905+
'--enable-mc' if includeTPCResidualsMC else ''
19021906
])
19031907
workflow['stages'].append(SCDAGGREGtask)
19041908

0 commit comments

Comments
 (0)