Skip to content

Commit 0d76211

Browse files
committed
qc-workflow.sh: fix missing TOF clusters input if using only global tracks for K0 QC
1 parent 57aa046 commit 0d76211

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

DATA/common/gen_topo_helper_functions.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ has_secvtx_source()
5959
[[ $SVERTEXING_SOURCES =~ (^|,)"ALL"(,|$) ]] || [[ $SVERTEXING_SOURCES =~ (^|,)"$1"(,|$) ]]
6060
}
6161

62+
has_detector_in_secvtx_sources()
63+
{
64+
[[ $SVERTEXING_SOURCES =~ (^|,)"ALL"(,|$) ]] || [[ $SVERTEXING_SOURCES =~ (^|,|-)"$1"(-|,|$) ]]
65+
}
66+
6267
has_detector_qc()
6368
{
6469
has_detector $1 && [[ $WORKFLOW_DETECTORS_QC =~ (^|,)"$1"(,|$) ]]

DATA/production/qc-workflow.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,9 @@ elif [[ -z ${QC_JSON_FROM_OUTSIDE:-} ]]; then
310310
ITSTPCMatchQuery+=";matchTPCTRDTOF/TOF/MTC_TPCTRD/0"
311311
TRACKSOURCESK0+=",TPC-TRD-TOF"
312312
fi
313-
if has_secvtx_source TOF; then
313+
if has_detector_in_secvtx_sources TOF; then
314314
ITSTPCMatchQuery+=";tofcluster:TOF/CLUSTERS/0"
315-
TRACKSOURCESK0+=",TOF"
315+
has_secvtx_source TOF && TRACKSOURCESK0+=",TOF"
316316
fi
317317
if has_secvtx_source TRD; then
318318
TRACKSOURCESK0+=",TRD"

0 commit comments

Comments
 (0)