Skip to content

Commit c0542f5

Browse files
committed
[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.
1 parent 22cc6ac commit c0542f5

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

DATA/common/setenv.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,15 @@ 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};"
172+
# Number of MFT-MCH matching candidates to be stored in AO2Ds
173+
# Setting MUON_MATCHING_NCANDIDATES=0 disables the feature
174+
if [[ -z "${MUON_MATCHING_NCANDIDATES:-}" ]]; then
175+
MUON_MATCHING_NCANDIDATES=0 # disable the saving of nCandidated by default
176+
if [[ $BEAMTYPE == "pp" ]]; then MUON_MATCHING_NCANDIDATES=5; fi
177+
if [[ $BEAMTYPE == "PbPb" ]]; then MUON_MATCHING_NCANDIDATES=20; fi
178+
fi
179+
MFTMCH_NCANDIDATES_OPT=""
180+
[[ "x${MUON_MATCHING_NCANDIDATES}" != "x0" ]] && MFTMCH_NCANDIDATES_OPT+="FwdMatching.saveMode=3;FwdMatching.nCandidates=${MUON_MATCHING_NCANDIDATES};"
174181

175182

176183
# Set active reconstruction steps (defaults added according to SYNCMODE)

0 commit comments

Comments
 (0)