Skip to content

Commit 82f09e2

Browse files
asyncReco: optional cosmics matching with raw-cluster output (EXTRACTCOSMICS) (#2501)
JDL EXTRACTCOSMICS=1 enables the calibration workflows (ADD_CALIB, all other calibrations stay off) and CALIB_ASYNC_EXTRACTCOSMICS, which makes O2's calib-workflow.sh add o2-cosmics-match-workflow with the raw-cluster output (o2_cosmics_full.root, to be added to the job's output files). Allowed in async with TPC reconstructed, like the TPC time series. Optional JDL variables: - COSMICSPRESET: matcher preset (default physics-v1) - COSMICSCONFIG: matcher settings on top of the preset (configKeyValues), e.g. cosmicsMatch.minSeedDCAxyTOF=0;cosmicsMatch.minSeedDCAxyNSigmaTOF=0 - COSMICSARGS: extra workflow options, e.g. --debug-tree (cosmics_collector_debug.root, also to be added to the output files) - COSMICSPVVETO=0: no veto of legs belonging to primary-vertex contributors (on by default in calib-workflow.sh) Needs the O2 counterpart in calib-workflow.sh. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a769ab6 commit 82f09e2

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

‎DATA/common/setenv_calib.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ if [[ $SYNCMODE == 1 ]] && has_processing_step ENTROPY_ENCODER && [[ ! -z "$WORK
3535
if has_detector_calib EMC && has_detector_reco EMC && [[ $SYNCMODE != 1 ]]; then CAN_DO_CALIB_EMC_ASYNC_RECALIB=1; else CAN_DO_CALIB_EMC_ASYNC_RECALIB=0; fi
3636
if [[ $SYNCMODE != 1 ]] && has_detector_reco TPC; then CAN_DO_CALIB_ASYNC_EXTRACTTPCCURRENTS=1; else CAN_DO_CALIB_ASYNC_EXTRACTTPCCURRENTS=0; fi
3737
if [[ $SYNCMODE != 1 ]] && has_detector_reco TPC; then CAN_DO_CALIB_ASYNC_EXTRACTTIMESERIES=1; else CAN_DO_CALIB_ASYNC_EXTRACTTIMESERIES=0; fi
38+
if [[ $SYNCMODE != 1 ]] && has_detector_reco TPC; then CAN_DO_CALIB_ASYNC_EXTRACTCOSMICS=1; else CAN_DO_CALIB_ASYNC_EXTRACTCOSMICS=0; fi
3839

3940
# additional individual settings for calibration workflows
4041
if has_detector CTP; then export CALIB_TPC_SCDCALIB_CTP_INPUT="--enable-ctp"; else export CALIB_TPC_SCDCALIB_CTP_INPUT=""; fi
@@ -222,6 +223,7 @@ fi
222223
( [[ -z ${CALIB_ASYNC_DISABLE3DCURRENTS:-} ]] || [[ $CAN_DO_CALIB_ASYNC_DISABLE3DCURRENTS == 0 ]] ) && CALIB_ASYNC_DISABLE3DCURRENTS=0
223224
: ${ON_SKIMMED_DATA:=0}
224225
( [[ -z ${CALIB_ASYNC_EXTRACTTIMESERIES:-} ]] || [[ $CAN_DO_CALIB_ASYNC_EXTRACTTIMESERIES == 0 ]] ) && CALIB_ASYNC_EXTRACTTIMESERIES=0
226+
( [[ -z ${CALIB_ASYNC_EXTRACTCOSMICS:-} ]] || [[ $CAN_DO_CALIB_ASYNC_EXTRACTCOSMICS == 0 ]] ) && CALIB_ASYNC_EXTRACTCOSMICS=0
225227

226228

227229
if [[ "0${GEN_TOPO_VERBOSE:-}" == "01" ]]; then

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ if [[ "$ALIEN_JDL_EXTRACTTIMESERIES" == "1" ]]; then
205205
export ADD_CALIB=1
206206
fi
207207

208+
if [[ "${ALIEN_JDL_EXTRACTCOSMICS:-}" == "1" ]]; then
209+
export ADD_CALIB=1
210+
fi
211+
208212
if [[ "$ALIEN_JDL_DOTPCTIMEGAINCALIB" == "1" ]]; then
209213
export ADD_CALIB=1
210214
fi

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,26 @@ if [[ $ADD_CALIB == "1" ]]; then
797797
export TPCTIMESERIES_MULT_MAX=$ALIEN_JDL_TPCTIMESERIESMULTMAX
798798
fi
799799
fi
800+
801+
# cosmic muons in collision data: matcher (TPC-only legs) + raw clusters of each cosmic -> o2_cosmics_full.root
802+
if [[ -n ${ALIEN_JDL_EXTRACTCOSMICS:-} ]] ; then
803+
echo "Adding cosmics matching and raw-cluster output in setenv_extra.sh"
804+
export CALIB_ASYNC_EXTRACTCOSMICS=$ALIEN_JDL_EXTRACTCOSMICS
805+
if [[ -n ${ALIEN_JDL_COSMICSPRESET:-} ]]; then
806+
export COSMICS_PRESET=$ALIEN_JDL_COSMICSPRESET
807+
fi
808+
# optional: matcher settings on top of the preset (e.g. cosmicsMatch.minSeedDCAxyTOF=0), extra options (e.g. --debug-tree), and
809+
# COSMICSPVVETO=0 to switch off the veto of legs belonging to primary-vertex contributors (on by default in calib-workflow.sh)
810+
if [[ -n ${ALIEN_JDL_COSMICSCONFIG:-} ]]; then
811+
export CONFIG_EXTRA_PROCESS_o2_cosmics_match_workflow+=";$ALIEN_JDL_COSMICSCONFIG"
812+
fi
813+
if [[ -n ${ALIEN_JDL_COSMICSARGS:-} ]]; then
814+
export ARGS_EXTRA_PROCESS_o2_cosmics_match_workflow+=" $ALIEN_JDL_COSMICSARGS"
815+
fi
816+
if [[ -n ${ALIEN_JDL_COSMICSPVVETO:-} ]]; then
817+
export COSMICS_PV_VETO=$ALIEN_JDL_COSMICSPVVETO
818+
fi
819+
fi
800820
if [[ $ALIEN_JDL_DOUPLOADSLOCALLY == 1 ]]; then
801821
export CCDB_POPULATOR_UPLOAD_PATH="file://$PWD"
802822
fi

0 commit comments

Comments
 (0)