-
Notifications
You must be signed in to change notification settings - Fork 192
Expand file tree
/
Copy pathits-noise-aggregator.sh
More file actions
executable file
·41 lines (34 loc) · 1.77 KB
/
its-noise-aggregator.sh
File metadata and controls
executable file
·41 lines (34 loc) · 1.77 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
source common/setenv.sh
# ---------------------------------------------------------------------------------------------------------------------
# Set general arguments
source common/getCommonArgs.sh
INPTYPE=""
if [[ -z $USECLUSTERS ]]; then
PROXY_INSPEC="A:ITS/DIGITS/0;B:ITS/DIGITSROF/0;eos:***/INFORMATION"
else
PROXY_INSPEC="A:ITS/COMPCLUSTERS/0;B:ITS/PATTERNS/0;C:ITS/CLUSTERSROF/0;eos:***/INFORMATION"
INPTYPE=" --use-clusters "
fi
if [[ -z $NTHREADS ]] ; then NTHREADS=1; fi
CCDBPATH1="http://o2-ccdb.internal"
CCDBPATH2="$DCSCCDBSERVER_PERS"
if [[ $RUNTYPE == "SYNTHETIC" || "${GEN_TOPO_DEPLOYMENT_TYPE:-}" == "ALICE_STAGING" || ! -z $ISTEST ]]; then
CCDBPATH1="http://ccdb-test.cern.ch:8080"
CCDBPATH2="$DCSCCDBSERVER_PERS"
fi
WORKFLOW=
add_W o2-dpl-raw-proxy "--proxy-name its-noise-input-proxy --dataspec \"$PROXY_INSPEC\" --network-interface ib0 --channel-config \"name=its-noise-input-proxy,method=bind,type=pull,rateLogging=1,transport=zeromq\"" "" 0
add_W o2-its-noise-calib-workflow "--prob-threshold 1e-6 --cut-ib 1e-2 --nthreads ${NTHREADSACC} --processing-mode 1 --pipeline its-noise-calibrator:${NITSACCPIPELINES} ${INPTYPE}"
add_W o2-its-noise-calib-workflow "--validity-days 730 --prob-threshold 1e-6 --cut-ib 1e-2 --nthreads ${NTHREADSNORM} --processing-mode 2 ${INPTYPE}"
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