Skip to content

Commit f08626e

Browse files
rmunzerwiechula
authored andcommitted
Fix for tpc-laser-raw-filter
1 parent bb29737 commit f08626e

File tree

2 files changed

+45
-28
lines changed

2 files changed

+45
-28
lines changed

DATA/testing/detectors/TPC/tpc-laser-raw-filter.sh

Lines changed: 43 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,43 +6,60 @@ source common/getCommonArgs.sh
66

77
source common/gen_topo_helper_functions.sh
88

9-
export SHMSIZE=$(( 128 << 30 )) # GB for the global SHMEM # for kr cluster finder
10-
119
if [ $NUMAGPUIDS != 0 ]; then
1210
ARGS_ALL+=" --child-driver 'numactl --membind $NUMAID --cpunodebind $NUMAID'"
1311
fi
1412

15-
PROXY_INSPEC="A:TPC/RAWDATA;dd:FLP/DISTSUBTIMEFRAME/0;eos:***/INFORMATION"
16-
CALIB_INSPEC="A:TPC/RAWDATA;dd:FLP/DISTSUBTIMEFRAME/0;eos:***/INFORMATION"
13+
PROXY_INSPEC="A:TPC/RAWDATA;dd:FLP/DISTSUBTIMEFRAME/0"
14+
CALIB_INSPEC="A:TPC/RAWDATA;dd:FLP/DISTSUBTIMEFRAME/0"
1715

1816
NLANES=36
1917
SESSION="default"
2018
PIPEADD="0"
2119
ARGS_FILES="keyval.output_dir=/dev/null"
2220

2321
HOST=localhost
24-
22+
CALIB_CONFIG="keyval.output_dir=/dev/null"
2523
QC_CONFIG="consul-json://alio2-cr1-hv-con01.cern.ch:8500/o2/components/qc/ANY/any/tpc-raw-qcmn"
26-
24+
QC_CONFIG_CONSUL=/o2/components/qc/ANY/any/tpc-raw-qcmn
2725
# TODO use add_W function from gen_topo_helper_functions.sh to assemble workflow
2826
# as done for example in https://github.com/AliceO2Group/O2DPG/blob/master/DATA/production/calib/its-threshold-processing.sh
29-
o2-dpl-raw-proxy $ARGS_ALL \
30-
--dataspec "$PROXY_INSPEC" --inject-missing-data \
31-
--readout-proxy '--channel-config "name=readout-proxy,type=pull,method=connect,address=ipc://@tf-builder-pipe-0,transport=shmem,rateLogging=1"' \
32-
| o2-tpc-raw-to-digits-workflow $ARGS_ALL \
33-
--input-spec "$CALIB_INSPEC" \
34-
--configKeyValues "$ARGS_FILES" \
35-
--remove-duplicates \
36-
--pipeline tpc-raw-to-digits-0:24 \
37-
| o2-tpc-krypton-raw-filter $ARGS_ALL \
38-
--configKeyValues "$ARGS_FILES" \
39-
--lanes $NLANES \
40-
--writer-type EPN \
41-
--meta-output-dir $EPN2EOS_METAFILES_DIR \
42-
--output-dir $CALIB_DIR \
43-
--threshold-max 20 \
44-
--max-tf-per-file 8000 \
45-
--time-bins-before 20 \
46-
--max-time-bins 650 \
47-
| o2-qc $ARGS_ALL --config ${QC_CONFIG} --local --host $HOST \
48-
| o2-dpl-run $ARGS_ALL --dds ${WORKFLOWMODE_FILE} ${GLOBALDPLOPT}
27+
28+
WORKFLOW=
29+
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
30+
add_W o2-tpc-raw-to-digits-workflow "--input-spec \"$CALIB_INSPEC\" --remove-duplicates --pipeline tpc-raw-to-digits-0:24" "${CALIB_CONFIG}"
31+
add_W o2-tpc-krypton-raw-filter "tpc-raw-to-digits-0:24 --lanes $NLANES --writer-type EPN --meta-output-dir $EPN2EOS_METAFILES_DIR --output-dir $CALIB_DIR --threshold-max 20 --max-tf-per-file 8000 --time-bins-before 20 --max-time-bins 650" "${CALIB_CONFIG}" 0
32+
add_QC_from_consul "${QC_CONFIG_CONSUL}" "--local --host lcoalhost"
33+
34+
35+
36+
WORKFLOW+="o2-dpl-run ${ARGS_ALL} ${GLOBALDPLOPT}"
37+
if [ $WORKFLOWMODE == "print" ]; then
38+
echo Workflow command:
39+
echo $WORKFLOW | sed "s/| */|\n/g"
40+
else
41+
# Execute the command we have assembled
42+
WORKFLOW+=" --$WORKFLOWMODE ${WORKFLOWMODE_FILE}"
43+
eval $WORKFLOW
44+
fi
45+
46+
#o2-dpl-raw-proxy $ARGS_ALL \
47+
# --dataspec "$PROXY_INSPEC" --inject-missing-data \
48+
# --readout-proxy '--channel-config "name=readout-proxy,type=pull,method=connect,address=ipc://@tf-builder-pipe-0,transport=shmem,rateLogging=1"' \
49+
# | o2-tpc-raw-to-digits-workflow $ARGS_ALL \
50+
# --input-spec "$CALIB_INSPEC" \
51+
# --configKeyValues "$ARGS_FILES;$ARGS_ALL_CONFIG" \
52+
# --remove-duplicates \
53+
# --pipeline tpc-raw-to-digits-0:24 \
54+
# | o2-tpc-krypton-raw-filter $ARGS_ALL \
55+
# --configKeyValues "$ARGS_FILES" \
56+
# --lanes $NLANES \
57+
# --writer-type EPN \
58+
# --meta-output-dir $EPN2EOS_METAFILES_DIR \
59+
# --output-dir $CALIB_DIR \
60+
# --threshold-max 20 \
61+
# --max-tf-per-file 8000 \
62+
# --time-bins-before 20 \
63+
# --max-time-bins 650 \
64+
# | o2-qc $ARGS_ALL --config ${QC_CONFIG} --local --host $HOST \
65+
# | o2-dpl-run $ARGS_ALL --dds ${WORKFLOWMODE_FILE} ${GLOBALDPLOPT}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
TPC-krypton: "O2PDPSuite" reco,60,60,"SHMSIZE=128000000000 testing/detectors/TPC/tpc-krypton.sh"
22
TPC-krypton-raw: "O2PDPSuite" reco,60,60,"SHMSIZE=128000000000 testing/detectors/TPC/tpc-krypton-raw.sh"
3-
TPC-laser-raw-filter: "O2PDPSuite" reco,80,80,"SHMSIZE=128000000000 testing/detectors/TPC/tpc-laser-raw-filter.sh"
4-
TPC-pattern-generator: "O2PDPSuite" reco,1,1,"SHMSIZE=$((112 << 30)) GPUTYPE=HIP GPUMEMSIZE=$(( 24 << 30 )) HOSTMEMSIZE=$(( 5 << 30 )) testing/detectors/TPC/tpc-pattern-generator.sh"
3+
TPC-laser-raw-filter: "O2PDPSuite" reco,80,80,"SHMSIZE=$((128 << 30)) GPUTYPE=HIP GPUMEMSIZE=$(( 24 << 30 )) HOSTMEMSIZE=$(( 5 << 30 )) testing/detectors/TPC/tpc-laser-raw-filter.sh"
4+
TPC-pattern-generator: "O2PDPSuite" reco,1,1,"SHMSIZE=$((112 << 30)) GPUTYPE=HIP GPUMEMSIZE=$(( 24 << 30 )) HOSTMEMSIZE=$(( 5 << 30 )) testing/detectors/TPC/tpc-pattern-generator.sh"

0 commit comments

Comments
 (0)