Skip to content

Commit 21fb552

Browse files
authored
Apricot parameters in standalone runs (#1692)
* Add Runtype as apricot parameter * add options in common helper function * Further tests * Change of curl request * Modify curl command to in add_qc_from_apricot to allow for parameters * Remove debug output
1 parent ee5483b commit 21fb552

File tree

7 files changed

+11
-8
lines changed

7 files changed

+11
-8
lines changed

DATA/common/gen_topo_helper_functions.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,11 @@ add_QC_from_consul()
272272
add_QC_from_apricot()
273273
{
274274
if [[ ! -z ${GEN_TOPO_QC_JSON_FILE:-} ]]; then
275-
curl -s -o $GEN_TOPO_QC_JSON_FILE "${GEN_TOPO_QC_APRICOT_SERVER}/${1}?process=true"
275+
if [[ ${1} =~ "?" ]]; then
276+
curl -s -o $GEN_TOPO_QC_JSON_FILE "${GEN_TOPO_QC_APRICOT_SERVER}/${1}\&process=true"
277+
else
278+
curl -s -o $GEN_TOPO_QC_JSON_FILE "${GEN_TOPO_QC_APRICOT_SERVER}/${1}?process=true"
279+
fi
276280
if [[ $? != 0 ]]; then
277281
echo "Error fetching QC JSON $1"
278282
exit 1

DATA/production/calib/tpc-laser-aggregator.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ CCDB_PATH="http://o2-ccdb.internal"
1414

1515
HOST=localhost
1616

17-
QC_CONFIG="consul-json://alio2-cr1-hv-con01.cern.ch:8500/o2/components/qc/ANY/any/tpc-raw-qcmn"
17+
QC_CONFIG="consul-json://alio2-cr1-hv-con01.cern.ch:8500/o2/components/qc/ANY/any/tpc-raw-qcmn?run_type=${RUNTYPE:-}"
1818

1919
QC_CONFIG="components/qc/ANY/any/tpc-raw-qcmn"
2020
max_events=300

DATA/production/calib/tpc-laser-filter.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ PROXY_OUTSPEC="A:TPC/LASERTRACKS;B:TPC/CEDIGITS;D:TPC/CLUSREFS"
4646

4747
HOST=localhost
4848

49-
QC_CONFIG="consul-json://alio2-cr1-hv-con01.cern.ch:8500/o2/components/qc/ANY/any/tpc-laser-calib-qcmn"
49+
QC_CONFIG="consul-json://alio2-cr1-hv-con01.cern.ch:8500/o2/components/qc/ANY/any/tpc-laser-calib-qcmn?run_type=${RUNTYPE:-}"
5050
QC_CONFIG="components/qc/ANY/any/tpc-laser-calib-qcmn"
5151

5252

DATA/production/calib/tpc-laser.sh

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

4949

50-
QC_CONFIG="consul-json://alio2-cr1-hv-con01.cern.ch:8500/o2/components/qc/ANY/any/tpc-raw-qcmn"
50+
QC_CONFIG="consul-json://alio2-cr1-hv-con01.cern.ch:8500/o2/components/qc/ANY/any/tpc-raw-qcmn?run_type=${RUNTYPE:-}"
5151
QC_CONFIG="components/qc/ANY/any/tpc-raw-qcmn"
5252

5353
max_events=300

DATA/production/calib/tpc-pedestal.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-pedestal-calib-qcmn"
21-
QC_CONFIG="components/qc/ANY/any/tpc-pedestal-calib-qcmn"
21+
QC_CONFIG="components/qc/ANY/any/tpc-pedestal-calib-qcmn?run_type=${RUNTYPE:-}"
2222
CALIB_CONFIG="TPCCalibPedestal.ADCMin=20"
2323

2424

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"
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/calib/tpc-pulser.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ CCDB_PATH="http://o2-ccdb.internal"
1919

2020
HOST=localhost
2121

22-
QC_CONFIG="components/qc/ANY/any/tpc-pulser-calib-qcmn"
22+
QC_CONFIG="components/qc/ANY/any/tpc-pulser-calib-qcmn?run_type=${RUNTYPE:-}"
2323

2424
max_events=200
2525
publish_after=230
@@ -35,7 +35,6 @@ fi
3535

3636
#################################################################################################################################
3737

38-
3938
WORKFLOW=
4039
add_W o2-dpl-raw-proxy "--dataspec \"$PROXY_INSPEC\" --inject-missing-data --channel-config \"name=readout-proxy,type=pull,method=connect,address=ipc://@tf-builder-pipe-0,transport=shmem,rateLogging=1\"" "" 0
4140
add_W o2-tpc-calib-pad-raw "--input-spec \"$CALIB_INSPEC\" --calib-type pulser --publish-after-tfs ${publish_after} --max-events ${max_events} --lanes 36 --check-calib-infos" "${CALIB_CONFIG}"

0 commit comments

Comments
 (0)