Skip to content

Commit bafcb11

Browse files
aferrero2707davidrohr
authored andcommitted
[MUON] add default values for number of MFT-MCH matching candidates
The default number of matching candidates to be saved in output AO2Ds is set to 5 for pp and 20 for Pb-Pb. For other beam typoes it is set to zero, which prevents from adding the FwdMatching.saveMode and FwdMatching.nCandidates options to the forward matching workflow. Setting the MUON_MATCHING_NCANDIDATES environment variable ovverrides the default values. The variable initialization has been moved to the setenv_extra.sh file because it is only used for async processing.
1 parent 7f8db37 commit bafcb11

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

DATA/common/setenv.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,6 @@ ITSMFT_STROBES=""
169169
[[ ! -z ${ITS_STROBE:-} ]] && ITSMFT_STROBES+="ITSAlpideParam.roFrameLengthInBC=$ITS_STROBE;"
170170
[[ ! -z ${MFT_STROBE:-} ]] && ITSMFT_STROBES+="MFTAlpideParam.roFrameLengthInBC=$MFT_STROBE;"
171171

172-
MFTMCH_NCANDIDATES_OPT=
173-
[[ ! -z ${MUON_MATCHING_NCANDIDATES:-} ]] && MFTMCH_NCANDIDATES_OPT+="FwdMatching.saveMode=3;FwdMatching.nCandidates=${MUON_MATCHING_NCANDIDATES};"
174-
175172

176173
# Set active reconstruction steps (defaults added according to SYNCMODE)
177174
for i in `echo $LIST_OF_GLORECO | sed "s/,/ /g"`; do

DATA/production/configurations/asyncReco/setenv_extra.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,19 @@ if [[ $BEAMTYPE == "pp" ]]; then
600600
export CONFIG_EXTRA_PROCESS_o2_mch_reco_workflow+=";MCHTracking.chamberResolutionX=0.4;MCHTracking.chamberResolutionY=0.4;MCHTracking.sigmaCutForTracking=7;MCHTracking.sigmaCutForImprovement=6"
601601
fi
602602

603+
# ad-hoc settings for MFT-MCH matching
604+
# Number of MFT-MCH matching candidates to be stored in AO2Ds
605+
# Setting MUON_MATCHING_NCANDIDATES=0 disables the storage of multiple candidates
606+
if [[ -z "${MUON_MATCHING_NCANDIDATES:-}" ]]; then
607+
MUON_MATCHING_NCANDIDATES=0 # disable the saving of nCandidated by default
608+
if [[ $BEAMTYPE == "pp" ]]; then MUON_MATCHING_NCANDIDATES=5; fi
609+
if [[ $BEAMTYPE == "PbPb" ]]; then MUON_MATCHING_NCANDIDATES=20; fi
610+
fi
611+
if [[ "x${MUON_MATCHING_NCANDIDATES}" != "x0" ]]; then
612+
export CONFIG_EXTRA_PROCESS_o2_globalfwd_matcher_workflow+=";FwdMatching.saveMode=3;FwdMatching.nCandidates=${MUON_MATCHING_NCANDIDATES};"
613+
fi
614+
615+
603616
# possibly adding calib steps as done online
604617
# could be done better, so that more could be enabled in one go
605618
if [[ $ADD_CALIB == "1" ]]; then

0 commit comments

Comments
 (0)