From e00df370d58c4b5b072bd25740c7c45c40afc633 Mon Sep 17 00:00:00 2001 From: aferrero2707 Date: Tue, 11 Mar 2025 15:47:47 +0100 Subject: [PATCH] [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. --- DATA/common/setenv.sh | 3 --- .../configurations/asyncReco/setenv_extra.sh | 13 +++++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/DATA/common/setenv.sh b/DATA/common/setenv.sh index 3cefedeca..2f11efdf8 100755 --- a/DATA/common/setenv.sh +++ b/DATA/common/setenv.sh @@ -169,9 +169,6 @@ ITSMFT_STROBES="" [[ ! -z ${ITS_STROBE:-} ]] && ITSMFT_STROBES+="ITSAlpideParam.roFrameLengthInBC=$ITS_STROBE;" [[ ! -z ${MFT_STROBE:-} ]] && ITSMFT_STROBES+="MFTAlpideParam.roFrameLengthInBC=$MFT_STROBE;" -MFTMCH_NCANDIDATES_OPT= -[[ ! -z ${MUON_MATCHING_NCANDIDATES:-} ]] && MFTMCH_NCANDIDATES_OPT+="FwdMatching.saveMode=3;FwdMatching.nCandidates=${MUON_MATCHING_NCANDIDATES};" - # Set active reconstruction steps (defaults added according to SYNCMODE) for i in `echo $LIST_OF_GLORECO | sed "s/,/ /g"`; do diff --git a/DATA/production/configurations/asyncReco/setenv_extra.sh b/DATA/production/configurations/asyncReco/setenv_extra.sh index 7cce2d965..ea2a5da5f 100644 --- a/DATA/production/configurations/asyncReco/setenv_extra.sh +++ b/DATA/production/configurations/asyncReco/setenv_extra.sh @@ -583,6 +583,19 @@ if [[ $BEAMTYPE == "pp" ]]; then export CONFIG_EXTRA_PROCESS_o2_mch_reco_workflow+=";MCHTracking.chamberResolutionX=0.4;MCHTracking.chamberResolutionY=0.4;MCHTracking.sigmaCutForTracking=7;MCHTracking.sigmaCutForImprovement=6" fi +# ad-hoc settings for MFT-MCH matching +# Number of MFT-MCH matching candidates to be stored in AO2Ds +# Setting MUON_MATCHING_NCANDIDATES=0 disables the storage of multiple candidates +if [[ -z "${MUON_MATCHING_NCANDIDATES:-}" ]]; then + MUON_MATCHING_NCANDIDATES=0 # disable the saving of nCandidated by default + if [[ $BEAMTYPE == "pp" ]]; then MUON_MATCHING_NCANDIDATES=5; fi + if [[ $BEAMTYPE == "PbPb" ]]; then MUON_MATCHING_NCANDIDATES=20; fi +fi +if [[ "x${MUON_MATCHING_NCANDIDATES}" != "x0" ]]; then + export CONFIG_EXTRA_PROCESS_o2_globalfwd_matcher_workflow+=";FwdMatching.saveMode=3;FwdMatching.nCandidates=${MUON_MATCHING_NCANDIDATES};" +fi + + # possibly adding calib steps as done online # could be done better, so that more could be enabled in one go if [[ $ADD_CALIB == "1" ]]; then