Skip to content

Commit b1a3a03

Browse files
calib-workflow.sh: optional cosmics matching with raw-cluster output in async
With CALIB_ASYNC_EXTRACTCOSMICS=1 (set by O2DPG from the JDL), the async calibration workflows add o2-cosmics-match-workflow on the TPC-only tracks with the preset COSMICS_PRESET (default physics-v1) and the raw-cluster output (o2_cosmics_full.root, always written, as the TPC time series). The road detectors are those of ITS, TOF, TRD reconstructed in the job; without TOF the preset's TOF flight selection is switched off. Checked in print mode with the O2DPG counterpart: the switch adds only this workflow; no workflow without TPC, in sync mode, or with the switch unset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 9a493f4 commit b1a3a03

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎prodtests/full-system-test/calib-workflow.sh‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,17 @@ if [[ $CALIB_ASYNC_EXTRACTTIMESERIES == 1 ]] ; then
7979
CONFIG_TPCTIMESERIES+=" --mult-max ${TPCTIMESERIES_MULT_MAX}"
8080
add_W o2-tpc-time-series-workflow "$DISABLE_ROOT_INPUT ${CONFIG_TPCTIMESERIES}"
8181
fi
82+
if [[ $CALIB_ASYNC_EXTRACTCOSMICS == 1 ]] ; then
83+
# cosmic muons in collision data: TPC-only legs matched with the preset's selection, raw clusters of each cosmic -> o2_cosmics_full.root
84+
: ${COSMICS_PRESET:=physics-v1}
85+
COSMICS_ROAD_DETECTORS=
86+
for det in ITS TOF TRD; do
87+
has_detector_reco $det && COSMICS_ROAD_DETECTORS+="${COSMICS_ROAD_DETECTORS:+,}$det"
88+
done
89+
COSMICS_CONFIG=
90+
has_detector_reco TOF || COSMICS_CONFIG="cosmicsMatch.tofFlightSelection=false" # the TOF flight selection of the preset needs TOF clusters
91+
add_W o2-cosmics-match-workflow "$DISABLE_ROOT_INPUT $DISABLE_MC --track-sources TPC --cosmics-preset ${COSMICS_PRESET} --enable-cluster-output --road-detectors ${COSMICS_ROAD_DETECTORS:-none}" "$COSMICS_CONFIG"
92+
fi
8293

8394
# output-proxy for aggregator
8495
if workflow_has_parameter CALIB_PROXIES; then

0 commit comments

Comments
 (0)