forked from AliceO2Group/O2DataProcessing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example-workflow.sh
executable file
·26 lines (21 loc) · 1.17 KB
/
example-workflow.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash
source common/setenv.sh
SEVERITY=warning
ARGS_ALL="--session default --severity $SEVERITY --shm-segment-size $SHMSIZE"
if [ $EPNSYNCMODE == 1 ]; then
ARGS_ALL+=" --infologger-severity $INFOLOGGER_SEVERITY"
ARGS_ALL+=" --monitoring-backend influxdb-unix:///tmp/telegraf.sock --resources-monitoring 15"
elif [ "0$ENABLE_METRICS" != "01" ]; then
ARGS_ALL+=" --monitoring-backend no-op://"
fi
[ $NORATELOG == 1 ] && ARGS_ALL+=" --fairmq-rate-logging 0"
ARGS_ALL_CONFIG="NameConf.mDirGRP=$FILEWORKDIR;NameConf.mDirGeom=$FILEWORKDIR;NameConf.mDirCollContext=$FILEWORKDIR;NameConf.mDirMatLUT=$FILEWORKDIR;keyval.input_dir=$FILEWORKDIR;keyval.output_dir=/dev/null"
PROXY_INSPEC="A:TPC/RAWDATA;dd:FLP/DISTSUBTIMEFRAME/0;eos:***/INFORMATION"
o2-dpl-raw-proxy $ARGS_ALL \
--dataspec "$PROXY_INSPEC" \
--readout-proxy "--channel-config 'name=readout-proxy,type=pull,method=connect,address=ipc://@$INRAWCHANNAME,transport=shmem,rateLogging=1'" \
| o2-tpc-raw-to-digits-workflow $ARGS_ALL \
--input-spec "$PROXY_INSPEC" \
--remove-duplicates \
--configKeyValues "$ARGS_ALL_CONFIG;TPCDigitDump.LastTimeBin=1000;" \
| o2-dpl-run $ARGS_ALL $GLOBALDPLOPT --dds