Skip to content

Commit 9e25586

Browse files
aphecetcheshahor02
authored andcommitted
MCH QC : only activate MCH-MID track QC if MID is there
1 parent 5f42053 commit 9e25586

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

DATA/common/setenv.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ has_pid_qc()
178178
return 0
179179
}
180180

181+
has_track_source()
182+
{
183+
[[ $TRACK_SOURCES =~ (^|,)"$1"(,|$) ]]
184+
}
185+
181186
has_tof_matching_source()
182187
{
183188
[[ $TOF_SOURCES =~ (^|,)"$1"(,|$) ]]

DATA/production/qc-workflow.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ elif [[ -z $QC_JSON_FROM_OUTSIDE ]]; then
3636
[[ -z "$QC_JSON_EMC" ]] && QC_JSON_EMC=consul://o2/components/qc/ANY/any/emc-qcmn-epnall
3737
if [[ -z "$QC_JSON_MCH" ]]; then
3838
if has_detector MCH && has_processing_step MCH_RECO; then
39-
QC_JSON_MCH=consul://o2/components/qc/ANY/any/mch-qcmn-epn-full
39+
if has_track_source "MCH-MID"; then
40+
QC_JSON_MCH=consul://o2/components/qc/ANY/any/mch-qcmn-epn-full-track-matching
41+
else
42+
QC_JSON_MCH=consul://o2/components/qc/ANY/any/mch-qcmn-epn-full
43+
fi
4044
else
4145
QC_JSON_MCH=consul://o2/components/qc/ANY/any/mch-qcmn-epn-digits
4246
fi

0 commit comments

Comments
 (0)