Skip to content

Commit fc9fea6

Browse files
TPC residuals: JDL hook for extra scdcalib keys (#2517)
The residual extraction's track selection (minPtNoOuterPoint, minTOFTRDPVContributors, ITS / TPC cluster cuts, ...) is hard-coded in setenv_extra.sh and cannot be changed from the JDL; in anchored MC the anchored configuration also overrides keys given on the command line. ALIEN_JDL_TPCRESIDUAL_EXTRACONFIG is appended after the defaults, so its keys win (later keys override earlier ones in configKeyValues). Example, keeping all tracks and clusters (needs O2 with scdcalib.keepClustersOnPropFail, >= 2026-10-07; unknown keys are fatal): scdcalib.keepClustersOnPropFail=true;scdcalib.clampTgSlp=true;scdcalib.minPtNoOuterPoint=0;scdcalib.minTOFTRDPVContributors=0 Unset: the configuration is unchanged. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 46900ed commit fc9fea6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎DATA/production/configurations/asyncReco/setenv_extra.sh‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,10 @@ if [[ $ADD_CALIB == "1" ]]; then
734734
export CONFIG_EXTRA_PROCESS_o2_tpc_scdcalib_interpolation_workflow+=";scdcalib.maxTracksPerCalibSlot=$ALIEN_JDL_TPCRESIDUALMAXTRACKSPERSLOT;scdcalib.additionalTracksMap=$ALIEN_JDL_TPCRESIDUALADDTRACKSMAP;scdcalib.minPtNoOuterPoint=0.2;scdcalib.maxQ2Pt=5;scdcalib.minITSNClsNoOuterPoint=6;scdcalib.minITSNCls=4;scdcalib.minTPCNClsNoOuterPoint=50;scdcalib.minTOFTRDPVContributors=2;"
735735
CONFIG_EXTRA_PROCESS_o2_tpc_scdcalib_interpolation_workflow+=$([[ "$ALIEN_JDL_TPCRESIDUAL_WRITEUNFILTERED" == "1" ]] && printf "scdcalib.writeUnfiltered=true;" || printf "scdcalib.writeUnfiltered=false;")
736736
CONFIG_EXTRA_PROCESS_o2_tpc_scdcalib_interpolation_workflow+=$([[ "$ALIEN_JDL_TPCRESIDUAL_KEEPREJECTEDRES" == "1" ]] && printf "scdcalib.keepRejectedResiduals=true;" || printf "scdcalib.keepRejectedResiduals=false;")
737+
# additional scdcalib keys from the JDL, appended last so that they override the defaults above
738+
if [[ -n "$ALIEN_JDL_TPCRESIDUAL_EXTRACONFIG" ]]; then
739+
CONFIG_EXTRA_PROCESS_o2_tpc_scdcalib_interpolation_workflow+=";$ALIEN_JDL_TPCRESIDUAL_EXTRACONFIG;"
740+
fi
737741

738742
export ARGS_EXTRA_PROCESS_o2_tpc_scdcalib_interpolation_workflow+=" --tracking-sources-map-extraction $ALIEN_JDL_TPCRESIDUALTRKSOURCESMAPEXTRACTION"
739743
if [[ ! $DO_TPC_RESIDUAL_EXTRACTION =~ "NOEXTCLROAD" ]]; then

0 commit comments

Comments
 (0)