Skip to content

Commit 3796043

Browse files
dstoccodavidrohr
authored andcommitted
Add MID raw to CTF workflow with digits QC
1 parent 93c84da commit 3796043

File tree

4 files changed

+106
-0
lines changed

4 files changed

+106
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"qc": {
3+
"config": {
4+
"database": {
5+
"implementation": "CCDB",
6+
"host": "ali-qcdb.cern.ch:8083",
7+
"username": "not_applicable",
8+
"password": "not_applicable",
9+
"name": "not_applicable"
10+
},
11+
"Activity": {
12+
"number": "42",
13+
"type": "2"
14+
},
15+
"monitoring": {
16+
"url": "influxdb-unix:///tmp/telegraf.sock"
17+
},
18+
"consul": {
19+
"url": "null:8500"
20+
},
21+
"conditionDB": {
22+
"url": "null:8083"
23+
}
24+
},
25+
"tasks": {
26+
"QcTaskMIDDigits": {
27+
"active": "true",
28+
"className": "o2::quality_control_modules::mid::DigitsQcTask",
29+
"moduleName": "QcMID",
30+
"detectorName": "MID",
31+
"cycleDurationSeconds": "60",
32+
"maxNumberCycles": "-1",
33+
"dataSource": {
34+
"type": "dataSamplingPolicy",
35+
"name": "middigits"
36+
},
37+
"location": "local",
38+
"mergingMode": "delta",
39+
"localControl": "odc",
40+
"localMachines": [
41+
"epn",
42+
"localhost"
43+
],
44+
"remotePort": "47780",
45+
"remoteMachine": "alio2-cr1-qme02.cern.ch"
46+
}
47+
}
48+
},
49+
"dataSamplingPolicies": [
50+
{
51+
"id": "middigits",
52+
"active": "true",
53+
"machines": [],
54+
"query": "digits:MID/DATA/0;digitrofs:MID/DATAROF/0;calib:MID/DATA/1;calibrofs:MID/DATAROF/1;fet:MID/DATA/2;fetrofs:MID/DATAROF/2",
55+
"samplingConditions": [
56+
{
57+
"condition": "random",
58+
"fraction": "1",
59+
"seed": "1441"
60+
}
61+
],
62+
"blocking": "false"
63+
}
64+
]
65+
}
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-entropy-encoder-workflow $ARGS_ALL | "
9+
WORKFLOW+="o2-ctf-writer-workflow $ARGS_ALL $MID_CTF_WRITER_OPTS | "
10+
WORKFLOW+="o2-qc $ARGS_ALL --config json://$FILEWORKDIR/mid-qcmn-epn-digits.json $MID_QC_EPN_OPTS | "
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
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 common/setenv.sh
5+
6+
SEVERITY=warning
7+
INFOLOGGER_SEVERITY=warning
8+
ARGS_ALL="--session default --severity $SEVERITY --shm-segment-size $SHMSIZE"
9+
ARGS_ALL+=" --infologger-severity $INFOLOGGER_SEVERITY"
10+
ARGS_ALL+=" --monitoring-backend influxdb-unix:///tmp/telegraf.sock --resources-monitoring 60"
11+
12+
MID_PROXY_INSPEC_EOS="eos:***/INFORMATION"
13+
MID_PROXY_INSPEC_DD="dd:FLP/DISTSUBTIMEFRAME/0"
14+
MID_RAW_PROXY_INSPEC="A:MID/RAWDATA;$MID_PROXY_INSPEC_DD;$MID_PROXY_INSPEC_EOS"
15+
MID_DIGITS_PROXY_INSPEC="A:MID/DATA/0;B:MID/DATAROF/0;$MID_PROXY_INSPEC_DD;$MID_PROXY_INSPEC_EOS"
16+
MID_DPL_CHANNEL_CONFIG="name=readout-proxy,type=pull,method=connect,address=ipc://@$INRAWCHANNAME,transport=shmem,rateLogging=1"
17+
export FILEWORKDIR="/home/dstocco/config" #FIXME: this should be removed from gen_topo.sh
18+
MID_RAW_TO_DIGITS_OPTS="--feeId-config-file \"$FILEWORKDIR/feeId_mapper.txt\""
19+
MID_CTF_WRITER_OPTS="--output-dir \"$CTF_DIR\" --onlyDet \"MID\" --no-grp --min-file-size 500000000 --max-ctf-per-file 10000 --meta-output-dir \"$CTF_METAFILES_DIR\""
20+
MID_EPN_QC_OPTS="--local --host epn"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mid-raw-to-ctf-qc-workflow: "O2PDPSuite" reco,5,5,"SHMSIZE=128000000000 testing/detectors/MID/mid-raw-to-ctf-qc-workflow.sh"

0 commit comments

Comments
 (0)