Skip to content

Commit

Permalink
Change from consul to apricot (tpc standalone + global sync) (AliceO2…
Browse files Browse the repository at this point in the history
…Group#1667)

* Change tpc qc from consul to apricot configuration

* change path of laser qc
  • Loading branch information
rmunzer authored and Florian Eisenhut committed Jul 1, 2024
1 parent 3c9450d commit be15d49
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 52 deletions.
16 changes: 2 additions & 14 deletions DATA/production/calib/tpc-laser-aggregator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ HOST=localhost

QC_CONFIG="consul-json://alio2-cr1-hv-con01.cern.ch:8500/o2/components/qc/ANY/any/tpc-raw-qcmn"

QC_CONFIG_CONSUL="/o2/components/qc/ANY/any/tpc-raw-qcmn"
QC_CONFIG="components/qc/ANY/any/tpc-raw-qcmn"
max_events=300
publish_after=440
min_tracks=0
Expand Down Expand Up @@ -50,7 +50,7 @@ add_W o2-dpl-raw-proxy " --proxy-name tpc-laser-input-proxy --dataspec \"$PROXY_
add_W o2-tpc-calib-laser-tracks "${REMAP} --use-filtered-tracks ${EXTRA_CONFIG_TRACKS} --min-tfs=${min_tracks} "
add_W o2-tpc-calib-pad-raw " ${EXTRA_CONFIG}" "${CALIB_CONFIG}"
add_W o2-calibration-ccdb-populator-workflow "--ccdb-path ${CCDB_PATH}" "" 0
#add_QC_from_consul "${QC_CONFIG_CONSUL}" "--local --host lcoalhost"
#add_QC_from_apricot "${QC_CONFIG_CONSUL}" "--local --host lcoalhost"

WORKFLOW+="o2-dpl-run ${ARGS_ALL} ${GLOBALDPLOPT}"
if [ $WORKFLOWMODE == "print" ]; then
Expand All @@ -62,16 +62,4 @@ else
eval $WORKFLOW
fi

#o2-dpl-raw-proxy $ARGS_ALL \
# --proxy-name tpc-laser-input-proxy \
# --dataspec "${PROXY_INSPEC}" \
# --network-interface ib0 \
# --channel-config "name=tpc-laser-input-proxy,method=bind,type=pull,rateLogging=0,transport=zeromq" \
# | o2-tpc-calib-laser-tracks ${ARGS_ALL} --use-filtered-tracks ${EXTRA_CONFIG_TRACKS} --min-tfs=${min_tracks} \
# --condition-remap "file:///home/wiechula/processData/inputFilesTracking/triggeredLaser/=GLO/Config/GRPECS;file:///home/wiechula/processData/inputFilesTracking/triggeredLaser/=GLO/Config/GRPMagField;file:///home/wiechula/processData/inputFilesTracking/triggeredLaser=TPC/Calib/LaserTracks" \
# | o2-tpc-calib-pad-raw ${ARGS_ALL} \
# --configKeyValues ${CALIB_CONFIG} ${EXTRA_CONFIG} \
# | o2-calibration-ccdb-populator-workflow ${ARGS_ALL} \
# --ccdb-path ${CCDB_PATH} \
# | o2-dpl-run $ARGS_ALL --dds ${WORKFLOWMODE_FILE}

31 changes: 2 additions & 29 deletions DATA/production/calib/tpc-laser-filter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ PROXY_OUTSPEC="A:TPC/LASERTRACKS;B:TPC/CEDIGITS;D:TPC/CLUSREFS"
HOST=localhost

QC_CONFIG="consul-json://alio2-cr1-hv-con01.cern.ch:8500/o2/components/qc/ANY/any/tpc-laser-calib-qcmn"
QC_CONFIG_CONSUL=/o2/components/qc/ANY/any/tpc-laser-calib-qcmn
QC_CONFIG="components/qc/ANY/any/tpc-laser-calib-qcmn"


RAWDIGIT_CONFIG="TPCDigitDump.NoiseThreshold=3;TPCDigitDump.LastTimeBin=600;NameConf.mDirGRP=$FILEWORKDIR;NameConf.mDirGeom=$FILEWORKDIR2;NameConf.mDirCollContext=$FILEWORKDIR;NameConf.mDirMatLUT=$FILEWORKDIR"
Expand All @@ -74,7 +74,7 @@ add_W o2-tpc-raw-to-digits-workflow "--ignore-grp --input-spec \"$CALIB_INSPEC\"
add_W o2-tpc-reco-workflow " ${TPC_CORR_SCALING:-} --disable-ctp-lumi-request --input-type digitizer --output-type \"tracks,disable-writer,clusters\" --disable-mc --pipeline tpc-zsEncoder:20,tpc-tracker:8 ${GPU_CONFIG} ${REMAP} " "${RECO_CONFIG}"
add_W o2-tpc-laser-track-filter "" "" 0
add_W o2-dpl-output-proxy " --proxy-name tpc-laser-input-proxy --proxy-channel-name tpc-laser-input-proxy --dataspec \"$PROXY_OUTSPEC\" --channel-config \"name=tpc-laser-input-proxy,method=connect,type=push,transport=zeromq,rateLogging=0\" " "" 0
add_QC_from_consul "${QC_CONFIG_CONSUL}" "--local --host lcoalhost"
add_QC_from_apricot "${QC_CONFIG}" "--local --host lcoalhost"

WORKFLOW+="o2-dpl-run ${ARGS_ALL} ${GLOBALDPLOPT}"
if [ $WORKFLOWMODE == "print" ]; then
Expand All @@ -86,30 +86,3 @@ else
eval $WORKFLOW
fi

#o2-dpl-raw-proxy ${ARGS_ALL} \
# --dataspec "$PROXY_INSPEC" --inject-missing-data \
# --readout-proxy "--channel-config 'name=readout-proxy,type=pull,method=connect,address=ipc://@tf-builder-pipe-0,transport=shmem,rateLogging=1'" \
# | o2-tpc-raw-to-digits-workflow ${ARGS_ALL} ${LASER_DECODER_ADD} \
# --input-spec "$CALIB_INSPEC" \
# --configKeyValues "TPCDigitDump.NoiseThreshold=3;TPCDigitDump.LastTimeBin=600;$ARGS_ALL_CONFIG" \
# --pipeline tpc-raw-to-digits-0:20 \
# --remove-duplicates \
# --send-ce-digits \
# | o2-tpc-reco-workflow ${ARGS_ALL} ${TPC_CORR_SCALING:-} \
# --input-type digitizer \
# --output-type "tracks,disable-writer,clusters" \
# --disable-ctp-lumi-request \
# --disable-mc \
# --pipeline tpc-zsEncoder:20,tpc-tracker:8 \
# ${GPU_CONFIG} \
# --condition-remap "file:///home/wiechula/processData/inputFilesTracking/triggeredLaser/=GLO/Config/GRPECS;file:///home/wiechula/processData/inputFilesTracking/triggeredLaser/=GLO/Config/GRPMagField;file:///home/wiechula/processData/inputFilesTracking/triggeredLaser=TPC/Calib/LaserTracks" \
# --configKeyValues "${ARGS_ALL_CONFIG};align-geom.mDetectors=none;GPU_global.deviceType=$GPUTYPE;GPU_proc.tpcIncreasedMinClustersPerRow=500000;GPU_proc.ignoreNonFatalGPUErrors=1;$GPU_CONFIG_KEY;GPU_global.tpcTriggeredMode=1;GPU_rec_tpc.clusterError2AdditionalY=0.1;GPU_rec_tpc.clusterError2AdditionalZ=0.15;GPU_rec_tpc.clustersShiftTimebinsClusterizer=35;GPU_proc.memoryScalingFactor=2;GPU_proc_param.tpcTriggerHandling=0" \
# | o2-tpc-laser-track-filter ${ARGS_ALL} \
# | o2-dpl-output-proxy ${ARGS_ALL} \
# --dataspec "$PROXY_OUTSPEC" \
# --proxy-name tpc-laser-input-proxy \
# --proxy-channel-name tpc-laser-input-proxy \
# --channel-config "name=tpc-laser-input-proxy,method=connect,type=push,transport=zeromq,rateLogging=0" \
# | o2-qc ${ARGS_ALL} --config ${QC_CONFIG} --local --host ${HOST} \
# | o2-dpl-run ${ARGS_ALL} --dds ${WORKFLOWMODE_FILE} ${GLOBALDPLOPT}

4 changes: 2 additions & 2 deletions DATA/production/calib/tpc-laser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ HOST=localhost


QC_CONFIG="consul-json://alio2-cr1-hv-con01.cern.ch:8500/o2/components/qc/ANY/any/tpc-raw-qcmn"
QC_CONFIG_CONSUL="/o2/components/qc/ANY/any/tpc-raw-qcmn"
QC_CONFIG="components/qc/ANY/any/tpc-raw-qcmn"

max_events=300
publish_after=440
Expand Down Expand Up @@ -95,7 +95,7 @@ add_W o2-tpc-laser-track-filter "" "" 0
add_W o2-tpc-calib-laser-tracks "--use-filtered-tracks ${EXTRA_CONFIG_TRACKS} --min-tfs=${min_tracks}"
add_W o2-tpc-calib-pad-raw " ${EXTRA_CONFIG}" "${CALIB_CONFIG}"
add_W o2-calibration-ccdb-populator-workflow "--ccdb-path ${CCDB_PATH}" "" 0
add_QC_from_consul "${QC_CONFIG_CONSUL}" "--local --host lcoalhost"
add_QC_from_apricot "${QC_CONFIG_CONSUL}" "--local --host lcoalhost"

WORKFLOW+="o2-dpl-run ${ARGS_ALL} ${GLOBALDPLOPT}"
if [ $WORKFLOWMODE == "print" ]; then
Expand Down
4 changes: 2 additions & 2 deletions DATA/production/calib/tpc-pedestal.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-pedestal-calib-qcmn"
QC_CONFIG="/o2/components/qc/ANY/any/tpc-pedestal-calib-qcmn"
QC_CONFIG="components/qc/ANY/any/tpc-pedestal-calib-qcmn"

max_events=50
publish_after=400
Expand All @@ -39,7 +39,7 @@ 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-tpc-calib-pad-raw "--input-spec \"$CALIB_INSPEC\" --publish-after-tfs ${publish_after} --max-events ${max_events} --lanes 36"
add_W o2-calibration-ccdb-populator-workflow "--ccdb-path \"http://o2-ccdb.internal\" " "" 0
add_QC_from_consul "${QC_CONFIG}" "--local --host localhost"
add_QC_from_apricot "${QC_CONFIG}" "--local --host localhost"

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

Expand Down
4 changes: 2 additions & 2 deletions 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="/o2/components/qc/ANY/any/tpc-pulser-calib-qcmn"
QC_CONFIG="components/qc/ANY/any/tpc-pulser-calib-qcmn"
max_events=1000000
publish_after=200

Expand All @@ -38,7 +38,7 @@ 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-tpc-calib-pad-raw "--input-spec \"$CALIB_INSPEC\" --calib-type pulser --reset-after-publish --publish-after-tfs ${publish_after} --max-events ${max_events} --lanes 36 --check-calib-infos"
add_W o2-calibration-ccdb-populator-workflow "--ccdb-path \"http://o2-ccdb.internal\" " "" 0
add_QC_from_consul "${QC_CONFIG}" "--local --host localhost"
add_QC_from_apricot "${QC_CONFIG}" "--local --host localhost"

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

Expand Down
4 changes: 2 additions & 2 deletions DATA/production/calib/tpc-pulser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ CCDB_PATH="http://o2-ccdb.internal"

HOST=localhost

QC_CONFIG="/o2/components/qc/ANY/any/tpc-pulser-calib-qcmn"
QC_CONFIG="components/qc/ANY/any/tpc-pulser-calib-qcmn"

max_events=200
publish_after=230
Expand All @@ -40,7 +40,7 @@ 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-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}"
add_W o2-calibration-ccdb-populator-workflow "--ccdb-path \"http://o2-ccdb.internal\" " "" 0
add_QC_from_consul "${QC_CONFIG}" "--local --host localhost"
add_QC_from_apricot "${QC_CONFIG}" "--local --host localhost"

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

Expand Down
2 changes: 1 addition & 1 deletion DATA/production/qc-workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,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=consul://o2/components/qc/ANY/any/tpc-full-qcmn
[[ -z "${QC_JSON_TPC:-}" ]] && QC_JSON_TPC=apricot://o2/components/qc/ANY/any/tpc-full-qcmn
[[ -z "${QC_JSON_ITS:-}" ]] && QC_JSON_ITS=consul://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 be15d49

Please sign in to comment.