Skip to content

Commit

Permalink
Parameter for global workflow in apricot (#1729)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
rmunzer authored Aug 20, 2024
1 parent b9af563 commit 4377d75
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DATA/production/calib/tpc-pulser-long.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ CCDB_PATH="http://o2-ccdb.internal"
HOST=localhost

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

Expand Down
9 changes: 7 additions & 2 deletions DATA/production/qc-workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ add_QC_JSON() {
fi
elif [[ ${2} =~ ^apricot://.* ]]; then
TMP_FILENAME=$FETCHTMPDIR/$1.$RANDOM.$RANDOM.json
curl -s -o $TMP_FILENAME "${GEN_TOPO_QC_APRICOT_SERVER}/${2/apricot:\/\/o2\//}?process=true"
if [[ ${2} =~ "?" ]]; then
curl -s -o $TMP_FILENAME "${GEN_TOPO_QC_APRICOT_SERVER}/${2/apricot:\/\/o2\//}\&process=true"
else
curl -s -o $TMP_FILENAME "${GEN_TOPO_QC_APRICOT_SERVER}/${2/apricot:\/\/o2\//}?process=true"
fi

if [[ $? != 0 ]]; then
echo "Error fetching QC JSON $2"
exit 1
Expand All @@ -52,7 +57,7 @@ if [[ -z ${QC_JSON_FROM_OUTSIDE:-} && ! -z ${GEN_TOPO_QC_JSON_FILE:-} && -f $GEN
QC_JSON_FROM_OUTSIDE=$GEN_TOPO_QC_JSON_FILE
elif [[ -z ${QC_JSON_FROM_OUTSIDE:-} ]]; then
if [[ $EPNSYNCMODE == 1 || "${GEN_TOPO_LOAD_QC_JSON_FROM_CONSUL:-}" == "1" ]]; then # Sync processing running on the EPN
[[ -z "${QC_JSON_TPC:-}" ]] && QC_JSON_TPC=apricot://o2/components/qc/ANY/any/tpc-full-qcmn
[[ -z "${QC_JSON_TPC:-}" ]] && QC_JSON_TPC=apricot://o2/components/qc/ANY/any/tpc-full-qcmn?run_type=${RUNTYPE:-}
[[ -z "${QC_JSON_ITS:-}" ]] && QC_JSON_ITS=apricot://o2/components/qc/ANY/any/its-qcmn-epn-full
if [[ -z "${QC_JSON_MFT:-}" ]]; then
if has_detector MFT && has_processing_step MFT_RECO; then
Expand Down

0 comments on commit 4377d75

Please sign in to comment.