-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EMCAL-1118] Add scripts for EMCAL pedestal calibration run (#1559)
- Loading branch information
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
source common/setenv.sh | ||
|
||
# --------------------------------------------------------------------------------------------------------------------- | ||
# Set general arguments | ||
source common/getCommonArgs.sh | ||
|
||
INPTYPE="" | ||
PROXY_INSPEC="A:EMC/PEDDATA/0;eos:***/INFORMATION" | ||
|
||
CCDBPATH1="http://o2-ccdb.internal" | ||
CCDBPATH2="$DCSCCDBSERVER" | ||
if [[ $RUNTYPE == "SYNTHETIC" || "${GEN_TOPO_DEPLOYMENT_TYPE:-}" == "ALICE_STAGING" || ! -z $ISTEST ]]; then | ||
CCDBPATH1="http://ccdb-test.cern.ch:8080" | ||
CCDBPATH2="http://ccdb-test.cern.ch:8080" | ||
fi | ||
|
||
WORKFLOW= | ||
add_W o2-dpl-raw-proxy "--proxy-name emc-pedestal-input-proxy --dataspec \"$PROXY_INSPEC\" --network-interface ib0 --channel-config \"name=emc-pedestal-input-proxy,method=bind,type=pull,rateLogging=1,transport=zeromq\"" "" 0 | ||
add_W o2-calibration-emcal-pedestal-calib-workflow | ||
add_W o2-calibration-ccdb-populator-workflow "--ccdb-path=\"$CCDBPATH1\" --sspec-min 0 --sspec-max 0" | ||
add_W o2-calibration-ccdb-populator-workflow "--ccdb-path=\"$CCDBPATH2\" --sspec-min 1 --sspec-max 1 --name-extention dcs" | ||
WORKFLOW+="o2-dpl-run $ARGS_ALL $GLOBALDPLOPT" | ||
|
||
if [ $WORKFLOWMODE == "print" ]; then | ||
echo Workflow command: | ||
echo $WORKFLOW | sed "s/| */|\n/g" | ||
else | ||
# Execute the command we have assembled | ||
WORKFLOW+=" --$WORKFLOWMODE ${WORKFLOWMODE_FILE}" | ||
eval $WORKFLOW | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
source common/setenv.sh | ||
|
||
# --------------------------------------------------------------------------------------------------------------------- | ||
# Set general arguments | ||
source common/getCommonArgs.sh | ||
|
||
PROXY_INSPEC="A:EMC/RAWDATA;dd:FLP/DISTSUBTIMEFRAME/0;eos:***/INFORMATION" | ||
|
||
PROXY_OUTSPEC="downstream:EMC/PEDDATA/0" | ||
|
||
[[ -z $NEMCPROCPIPELINES ]] && NEMCPROCPIPELINES=2 | ||
|
||
WORKFLOW= | ||
add_W o2-dpl-raw-proxy "--dataspec \"$PROXY_INSPEC\" --inject-missing-data --channel-config \"name=readout-proxy,type=pull,method=connect,address=ipc://@$INRAWCHANNAME,transport=shmem,rateLogging=1\"" "" 0 | ||
add_W o2-calibration-emcal-pedestal-processor-workflow "--pipeline calibration-emcal-pedestal-processor-workflow:${NITSDECTPIPELINES}" | ||
add_W o2-dpl-output-proxy "--dataspec \"$PROXY_OUTSPEC\" --proxy-channel-name emc-pedestal-input-proxy --channel-config \"name=emc-pedestal-input-proxy,method=connect,type=push,transport=zeromq,rateLogging=1\"" "" 0 | ||
WORKFLOW+="o2-dpl-run ${ARGS_ALL} ${GLOBALDPLOPT}" | ||
|
||
if [ $WORKFLOWMODE == "print" ]; then | ||
echo Workflow command: | ||
echo $WORKFLOW | sed "s/| */|\n/g" | ||
else | ||
# Execute the command we have assembled | ||
WORKFLOW+=" --$WORKFLOWMODE ${WORKFLOWMODE_FILE}" | ||
eval $WORKFLOW | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters