Skip to content

Commit 6f42c93

Browse files
authored
Add default parameter for apricot in global workflow (#1733)
* Add beam_type option for tpc qc * Remove parameter and fix typo * Remove second option in qc for calibration workflows * Remove debug lines * Add run_type and beam_type parameter as default to all qc configuration
1 parent 5b39c14 commit 6f42c93

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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:-}&beam_type=${BEAMTYPE:-}"
21+
QC_CONFIG="components/qc/ANY/any/tpc-pulser-calib-qcmn?run_type=${RUNTYPE:-}"
2222
max_events=1000000
2323
publish_after=200
2424

DATA/production/qc-workflow.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ add_QC_JSON() {
2929
elif [[ ${2} =~ ^apricot://.* ]]; then
3030
TMP_FILENAME=$FETCHTMPDIR/$1.$RANDOM.$RANDOM.json
3131
if [[ ${2} =~ "?" ]]; then
32-
curl -s -o $TMP_FILENAME "${GEN_TOPO_QC_APRICOT_SERVER}/${2/apricot:\/\/o2\//}\&process=true"
32+
curl -s -o $TMP_FILENAME "${GEN_TOPO_QC_APRICOT_SERVER}/${2/apricot:\/\/o2\//}\&run_type=${RUNTYPE:-}\&beam_type=${BEAMTYPE:-}\&process=true"
3333
else
34-
curl -s -o $TMP_FILENAME "${GEN_TOPO_QC_APRICOT_SERVER}/${2/apricot:\/\/o2\//}?process=true"
34+
curl -s -o $TMP_FILENAME "${GEN_TOPO_QC_APRICOT_SERVER}/${2/apricot:\/\/o2\//}?run_type=${RUNTYPE:-}\&beam_type=${BEAMTYPE:-}\&process=true"
3535
fi
3636

3737
if [[ $? != 0 ]]; then
@@ -57,7 +57,7 @@ if [[ -z ${QC_JSON_FROM_OUTSIDE:-} && ! -z ${GEN_TOPO_QC_JSON_FILE:-} && -f $GEN
5757
QC_JSON_FROM_OUTSIDE=$GEN_TOPO_QC_JSON_FILE
5858
elif [[ -z ${QC_JSON_FROM_OUTSIDE:-} ]]; then
5959
if [[ $EPNSYNCMODE == 1 || "${GEN_TOPO_LOAD_QC_JSON_FROM_CONSUL:-}" == "1" ]]; then # Sync processing running on the EPN
60-
[[ -z "${QC_JSON_TPC:-}" ]] && QC_JSON_TPC=apricot://o2/components/qc/ANY/any/tpc-full-qcmn?run_type=${RUNTYPE:-}
60+
[[ -z "${QC_JSON_TPC:-}" ]] && QC_JSON_TPC=apricot://o2/components/qc/ANY/any/tpc-full-qcmn
6161
[[ -z "${QC_JSON_ITS:-}" ]] && QC_JSON_ITS=apricot://o2/components/qc/ANY/any/its-qcmn-epn-full
6262
if [[ -z "${QC_JSON_MFT:-}" ]]; then
6363
if has_detector MFT && has_processing_step MFT_RECO; then

0 commit comments

Comments
 (0)