Skip to content

Commit e95db4d

Browse files
calib-workflow.sh: PV-contributor veto for the cosmics in async
With CALIB_ASYNC_EXTRACTCOSMICS=1 the cosmics matcher gets --pv-contributor-sources $VERTEXING_SOURCES when the primary vertexing runs, as the time series gets $TRACK_SOURCES: the TPC part of a vertex contributor is no cosmic leg. COSMICS_PV_VETO=0 switches it off, COSMICS_PV_SOURCES overrides the sources. The option ignores sources without TPC, so the vertexing sources are passed as they are (help text). Checked in print mode (veto on / off, without ITS: TPC-TOF) and on 4 PbPb TFs with the full vertexing source list: the same seeds rejected as with the 4 ITS-TPC sources that have contributors there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent ff9d75e commit e95db4d

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎Detectors/GlobalTrackingWorkflow/src/cosmics-match-workflow.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
5454
{"disable-root-input", o2::framework::VariantType::Bool, false, {"disable root-files input reader"}},
5555
{"disable-root-output", o2::framework::VariantType::Bool, false, {"disable root-files output writer"}},
5656
{"use-pv-info", o2::framework::VariantType::Bool, false, {"request primary vertex for relevant cuts in the collision/cosmics interleaved data"}},
57-
{"pv-contributor-sources", VariantType::String, "", {"global track sources (with TPC) loaded only to reject the TPC track of a primary-vertex contributor as a leg (cosmicsMatch.discardPVContributors, implies --use-pv-info), e.g. ITS-TPC,ITS-TPC-TRD,ITS-TPC-TOF,ITS-TPC-TRD-TOF"}},
57+
{"pv-contributor-sources", VariantType::String, "", {"global track sources loaded only to reject the TPC track of a primary-vertex contributor as a leg (cosmicsMatch.discardPVContributors, implies --use-pv-info); sources without TPC are ignored, so the vertexing sources can be passed as they are"}},
5858
{"enable-cluster-output", o2::framework::VariantType::Bool, false, {"collect the raw clusters of the cosmics (legs + road around them) and write them with the cosmics"}},
5959
{"road-detectors", VariantType::String, "ITS,TOF,TRD", {"with --enable-cluster-output: detectors whose hits along the cosmic are collected besides the TPC road"}},
6060
{"cosmics-preset", VariantType::String, "", {"named set of cosmicsMatch settings applied before --configKeyValues (which can override single keys): physics-v1 = cosmics in collision data"}},

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,13 @@ if [[ $CALIB_ASYNC_EXTRACTCOSMICS == 1 ]] ; then
8888
done
8989
COSMICS_CONFIG=
9090
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"
91+
# the TPC part of a primary-vertex contributor comes from a collision: veto it as a leg, with the vertexing sources (those without TPC are ignored)
92+
COSMICS_OPT=
93+
: ${COSMICS_PV_SOURCES:=${VERTEXING_SOURCES:-}}
94+
if [[ ${COSMICS_PV_VETO:-1} == 1 ]] && [[ $BEAMTYPE != "cosmic" ]] && has_detector_matching PRIMVTX && [[ -n ${VERTEXING_SOURCES:-} ]] && [[ -n $COSMICS_PV_SOURCES ]]; then
95+
COSMICS_OPT+=" --pv-contributor-sources $COSMICS_PV_SOURCES"
96+
fi
97+
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_OPT" "$COSMICS_CONFIG"
9298
fi
9399

94100
# output-proxy for aggregator

0 commit comments

Comments
 (0)