Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHS: add DCS CCDB populator to pedestal calibration workflow #1618

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions DATA/production/calib/phs-pedestal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,23 @@ PROXY_INSPEC="A:PHS/RAWDATA;dd:FLP/DISTSUBTIMEFRAME/0"

push_ccdb_path="http://o2-ccdb.internal"
pull_ccdb_path="http://o2-ccdb.internal"
if [[ ! -z ${PUHS_CCDB_PATH:-} ]]; then
push_ccdb_path=$PUHS_CCDB_PATH
dcs_ccdb_path="http://alio2-cr1-flp199-ib:8083"

if [[ ! -z ${PUSH_CCDB_PATH:-} ]]; then
push_ccdb_path=$PUSH_CCDB_PATH
fi

if [[ ! -z ${PULL_CCDB_PATH:-} ]]; then
pull_ccdb_path=$PULL_CCDB_PATH
fi

if [[ ! -z ${DCS_CCDB_PATH:-} ]]; then
dcs_ccdb_path=$DCS_CCDB_PATH
fi

if [[ $RUNTYPE == "SYNTHETIC" || "${GEN_TOPO_DEPLOYMENT_TYPE:-}" == "ALICE_STAGING" ]]; then
push_ccdb_path="http://ccdb-test.cern.ch:8080"
dcs_ccdb_path="http://ccdb-test.cern.ch:8080"
fi

QC_CONFIG="/o2/components/qc/ANY/any/phs-pedestal-qc"
Expand All @@ -34,9 +41,9 @@ WORKFLOW=
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
add_W o2-phos-reco-workflow "--input-type raw --output-type cells --pedestal on --disable-root-input --disable-root-output --condition-backend ${pull_ccdb_path}"
add_W o2-phos-calib-workflow "--pedestals --statistics ${max_statistics} --forceupdate"
#add_W o2-calibration-ccdb-populator-workflow "--ccdb-path ${push_ccdb_path}"
workflow_has_parameter QC && add_QC_from_consul "${QC_CONFIG}"
add_W o2-calibration-ccdb-populator-workflow "--ccdb-path ${push_ccdb_path}"
add_W o2-calibration-ccdb-populator-workflow "--ccdb-path ${push_ccdb_path} --sspec-min 0 --sspec-max 0"
add_W o2-calibration-ccdb-populator-workflow "--name-extention -dcs --ccdb-path ${dcs_ccdb_path} --sspec-min 1 --sspec-max 1"

WORKFLOW+="o2-dpl-run ${ARGS_ALL} ${GLOBALDPLOPT}"

Expand Down