Skip to content

Commit 90311e3

Browse files
committed
Fix for TPC distortion treatment
A bug for TPC distortion treatment crept in with the refactor of #1966 This commit fixes it.
1 parent 88ee20d commit 90311e3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

MC/bin/o2dpg_sim_workflow.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,6 +1156,7 @@ def getDigiTaskName(det):
11561156
if COLTYPE == 'PbPb':
11571157
tpcLocalCFreco['TPCCorrMap.lumiInstFactor'] = str(lumiInstFactor)
11581158
tpc_corr_options_mc=' --corrmap-lumi-mode 2 '
1159+
tpcLocalCFreco['TPCCorrMap.lumiMean'] = str(CTPSCALER)
11591160
tpcLocalCFreco['TPCCorrMap.lumiInst'] = str(CTPSCALER)
11601161

11611162
# Setup the TPC correction scaling options for reco; They come from the anchoring setup
@@ -1164,8 +1165,8 @@ def getDigiTaskName(det):
11641165
# - The "no corrections" mode is imposed by the TPCCorrMap.lumiMean configurable being negative, in this case all other options in the corrections treatment are ignored.
11651166
# - But if the MC simulation was done with distortions, then the reco needs --lumy-type 1 (i.e. scale with the CTP lumi) even if the corresponding anchor run reco was using --lumy-type 2
11661167
# (i.e. scaling according to the TPC IDC, which don't exist in the MC).
1167-
11681168
anchor_lumi_type = dpl_option_from_config(anchorConfig, 'o2-tpcits-match-workflow', '--lumi-type', section = 'full', default_value = '')
1169+
11691170
if anchor_lumi_type != '':
11701171
anchor_lumi_type = '--lumi-type ' + anchor_lumi_type
11711172
anchor_corrmaplumi_mode = dpl_option_from_config(anchorConfig, 'o2-tpcits-match-workflow', '--corrmap-lumi-mode', section = 'full', default_value = '')

MC/run/ANCHOR/anchorMC.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ echo_info "Substituting ALIEN_JDL_LPMPRODUCTIONTAG=$ALIEN_JDL_LPMPRODUCTIONTAG w
126126
ALIEN_JDL_LPMPRODUCTIONTAG=$ALIEN_JDL_LPMANCHORPRODUCTION
127127

128128
if [[ $ALIEN_JDL_ANCHOR_SIM_OPTIONS == *"--tpc-distortion-type 2"* ]]; then
129+
export O2DPG_ENABLE_TPC_DISTORTIONS=ON
129130
# set the SCALING SOURCE to CTP for MC unless explicitely given from outside
130131
export ALIEN_JDL_TPCSCALINGSOURCE=${ALIEN_JDL_TPCSCALINGSOURCE:-"CTP"}
131132
fi

0 commit comments

Comments
 (0)