Skip to content

Commit 4377d75

Browse files
authored
Parameter for global workflow in apricot (#1729)
* Add parameter runtype for TPC QC in global runs * Add beam_type option for tpc qc * Remove parameter and fix typo * Remove second option in qc for calibration workflows * Remove debug lines
1 parent b9af563 commit 4377d75

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

DATA/production/calib/tpc-pulser-long.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ CCDB_PATH="http://o2-ccdb.internal"
1818
HOST=localhost
1919

2020
#QC_CONFIG="consul-json://alio2-cr1-hv-con01.cern.ch:8500/o2/components/qc/ANY/any/tpc-raw-qcmn"
21-
QC_CONFIG="components/qc/ANY/any/tpc-pulser-calib-qcmn?run_type=${RUNTYPE:-}"
21+
QC_CONFIG="components/qc/ANY/any/tpc-pulser-calib-qcmn?run_type=${RUNTYPE:-}&beam_type=${BEAMTYPE:-}"
2222
max_events=1000000
2323
publish_after=200
2424

DATA/production/qc-workflow.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ add_QC_JSON() {
2828
fi
2929
elif [[ ${2} =~ ^apricot://.* ]]; then
3030
TMP_FILENAME=$FETCHTMPDIR/$1.$RANDOM.$RANDOM.json
31-
curl -s -o $TMP_FILENAME "${GEN_TOPO_QC_APRICOT_SERVER}/${2/apricot:\/\/o2\//}?process=true"
31+
if [[ ${2} =~ "?" ]]; then
32+
curl -s -o $TMP_FILENAME "${GEN_TOPO_QC_APRICOT_SERVER}/${2/apricot:\/\/o2\//}\&process=true"
33+
else
34+
curl -s -o $TMP_FILENAME "${GEN_TOPO_QC_APRICOT_SERVER}/${2/apricot:\/\/o2\//}?process=true"
35+
fi
36+
3237
if [[ $? != 0 ]]; then
3338
echo "Error fetching QC JSON $2"
3439
exit 1
@@ -52,7 +57,7 @@ if [[ -z ${QC_JSON_FROM_OUTSIDE:-} && ! -z ${GEN_TOPO_QC_JSON_FILE:-} && -f $GEN
5257
QC_JSON_FROM_OUTSIDE=$GEN_TOPO_QC_JSON_FILE
5358
elif [[ -z ${QC_JSON_FROM_OUTSIDE:-} ]]; then
5459
if [[ $EPNSYNCMODE == 1 || "${GEN_TOPO_LOAD_QC_JSON_FROM_CONSUL:-}" == "1" ]]; then # Sync processing running on the EPN
55-
[[ -z "${QC_JSON_TPC:-}" ]] && QC_JSON_TPC=apricot://o2/components/qc/ANY/any/tpc-full-qcmn
60+
[[ -z "${QC_JSON_TPC:-}" ]] && QC_JSON_TPC=apricot://o2/components/qc/ANY/any/tpc-full-qcmn?run_type=${RUNTYPE:-}
5661
[[ -z "${QC_JSON_ITS:-}" ]] && QC_JSON_ITS=apricot://o2/components/qc/ANY/any/its-qcmn-epn-full
5762
if [[ -z "${QC_JSON_MFT:-}" ]]; then
5863
if has_detector MFT && has_processing_step MFT_RECO; then

0 commit comments

Comments
 (0)