Skip to content

Commit d61915a

Browse files
dstoccodavidrohr
authored andcommitted
MID calibration workflow
1 parent 3f47d9c commit d61915a

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
3+
# shellcheck disable=SC1091
4+
source testing/detectors/MID/mid_common.sh
5+
6+
WORKFLOW="o2-dpl-raw-proxy $ARGS_ALL --dataspec \"$MID_RAW_PROXY_INSPEC\" --channel-config \"$MID_DPL_CHANNEL_CONFIG\" | "
7+
WORKFLOW+="o2-mid-raw-to-digits-workflow $ARGS_ALL $MID_RAW_TO_DIGITS_OPTS | "
8+
WORKFLOW+="o2-mid-calibration-workflow $ARGS_ALL | "
9+
WORKFLOW+="o2-calibration-ccdb-populator-workflow $ARGS_ALL --configKeyValues \"$ARGS_ALL_CONFIG\" --ccdb-path=\"http://o2-ccdb.internal\" --sspec-min 0 --sspec-max 0 | "
10+
WORKFLOW+="o2-calibration-ccdb-populator-workflow $ARGS_ALL --configKeyValues \"$ARGS_ALL_CONFIG\" --ccdb-path=\"http://alio2-cr1-flp199.cern.ch:8083\" --sspec-min 1 --sspec-max 1 --name-extention dcs | "
11+
WORKFLOW+="o2-dpl-run $ARGS_ALL $GLOBALDPLOPT"
12+
13+
if [ "$WORKFLOWMODE" == "print" ]; then
14+
echo Workflow command:
15+
echo "$WORKFLOW" | sed "s/| */|\n/g"
16+
else
17+
# Execute the command we have assembled
18+
WORKFLOW+=" --$WORKFLOWMODE"
19+
eval "$WORKFLOW"
20+
fi

DATA/testing/detectors/MID/mid_common.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ ARGS_ALL="--session default --severity $SEVERITY --shm-segment-size $SHMSIZE"
99
ARGS_ALL+=" --infologger-severity $INFOLOGGER_SEVERITY"
1010
ARGS_ALL+=" --monitoring-backend influxdb-unix:///tmp/telegraf.sock --resources-monitoring 60"
1111

12+
ARGS_ALL_CONFIG="NameConf.mDirGRP=$FILEWORKDIR;NameConf.mDirGeom=$FILEWORKDIR;NameConf.mDirCollContext=$FILEWORKDIR;NameConf.mDirMatLUT=$FILEWORKDIR;keyval.input_dir=$FILEWORKDIR;keyval.output_dir=/dev/null;$ALL_EXTRA_CONFIG"
13+
1214
MID_PROXY_INSPEC_EOS="eos:***/INFORMATION"
1315
MID_PROXY_INSPEC_DD="dd:FLP/DISTSUBTIMEFRAME/0"
1416
MID_RAW_PROXY_INSPEC="A:MID/RAWDATA;$MID_PROXY_INSPEC_DD;$MID_PROXY_INSPEC_EOS"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
mid-raw-to-ctf-qc-workflow: "O2PDPSuite" reco,5,5,"SHMSIZE=128000000000 testing/detectors/MID/mid-raw-to-ctf-qc-workflow.sh"
2+
mid-calib-workflow: "O2PDPSuite" reco,1,1,"SHMSIZE=128000000000 testing/detectors/MID/mid-calib-workflow.sh"

0 commit comments

Comments
 (0)