Skip to content

Commit 8da2161

Browse files
authored
[EMCAL-1118] Add scripts for EMCAL pedestal calibration run (#1559)
1 parent 81d06a8 commit 8da2161

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
3+
source common/setenv.sh
4+
5+
# ---------------------------------------------------------------------------------------------------------------------
6+
# Set general arguments
7+
source common/getCommonArgs.sh
8+
9+
INPTYPE=""
10+
PROXY_INSPEC="A:EMC/PEDDATA/0;eos:***/INFORMATION"
11+
12+
CCDBPATH1="http://o2-ccdb.internal"
13+
CCDBPATH2="$DCSCCDBSERVER"
14+
if [[ $RUNTYPE == "SYNTHETIC" || "${GEN_TOPO_DEPLOYMENT_TYPE:-}" == "ALICE_STAGING" || ! -z $ISTEST ]]; then
15+
CCDBPATH1="http://ccdb-test.cern.ch:8080"
16+
CCDBPATH2="http://ccdb-test.cern.ch:8080"
17+
fi
18+
19+
WORKFLOW=
20+
add_W o2-dpl-raw-proxy "--proxy-name emc-pedestal-input-proxy --dataspec \"$PROXY_INSPEC\" --network-interface ib0 --channel-config \"name=emc-pedestal-input-proxy,method=bind,type=pull,rateLogging=1,transport=zeromq\"" "" 0
21+
add_W o2-calibration-emcal-pedestal-calib-workflow
22+
add_W o2-calibration-ccdb-populator-workflow "--ccdb-path=\"$CCDBPATH1\" --sspec-min 0 --sspec-max 0"
23+
add_W o2-calibration-ccdb-populator-workflow "--ccdb-path=\"$CCDBPATH2\" --sspec-min 1 --sspec-max 1 --name-extention dcs"
24+
WORKFLOW+="o2-dpl-run $ARGS_ALL $GLOBALDPLOPT"
25+
26+
if [ $WORKFLOWMODE == "print" ]; then
27+
echo Workflow command:
28+
echo $WORKFLOW | sed "s/| */|\n/g"
29+
else
30+
# Execute the command we have assembled
31+
WORKFLOW+=" --$WORKFLOWMODE ${WORKFLOWMODE_FILE}"
32+
eval $WORKFLOW
33+
fi
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
3+
source common/setenv.sh
4+
5+
# ---------------------------------------------------------------------------------------------------------------------
6+
# Set general arguments
7+
source common/getCommonArgs.sh
8+
9+
PROXY_INSPEC="A:EMC/RAWDATA;dd:FLP/DISTSUBTIMEFRAME/0;eos:***/INFORMATION"
10+
11+
PROXY_OUTSPEC="downstream:EMC/PEDDATA/0"
12+
13+
[[ -z $NEMCPROCPIPELINES ]] && NEMCPROCPIPELINES=2
14+
15+
WORKFLOW=
16+
add_W o2-dpl-raw-proxy "--dataspec \"$PROXY_INSPEC\" --inject-missing-data --channel-config \"name=readout-proxy,type=pull,method=connect,address=ipc://@$INRAWCHANNAME,transport=shmem,rateLogging=1\"" "" 0
17+
add_W o2-calibration-emcal-pedestal-processor-workflow "--pipeline calibration-emcal-pedestal-processor-workflow:${NITSDECTPIPELINES}"
18+
add_W o2-dpl-output-proxy "--dataspec \"$PROXY_OUTSPEC\" --proxy-channel-name emc-pedestal-input-proxy --channel-config \"name=emc-pedestal-input-proxy,method=connect,type=push,transport=zeromq,rateLogging=1\"" "" 0
19+
WORKFLOW+="o2-dpl-run ${ARGS_ALL} ${GLOBALDPLOPT}"
20+
21+
if [ $WORKFLOWMODE == "print" ]; then
22+
echo Workflow command:
23+
echo $WORKFLOW | sed "s/| */|\n/g"
24+
else
25+
# Execute the command we have assembled
26+
WORKFLOW+=" --$WORKFLOWMODE ${WORKFLOWMODE_FILE}"
27+
eval $WORKFLOW
28+
fi

DATA/production/standalone-calibration.desc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
EMC-pedestal-calibration: "O2PDPSuite" reco,1,1,"production/calib/emc-pedestal-processing.sh" calib,1,"production/calib/emc-pedestal-aggregator.sh"
2+
13
FT0-time-offset-calibration: "O2PDPSuite" reco,5,5,"production/calib/ft0-timeoffset-processing.sh" calib,1,"production/calib/ft0-timeoffset-aggregator.sh"
24

35
ITS-noise-calibration: "O2PDPSuite" reco,20,20,"NITSDECTHREADS=4 NITSDECTPIPELINES=6 production/calib/its-noise-processing.sh" calib,20,"NTHREADSACC=4 NTHREADSNORM=16 NITSACCPIPELINES=16 production/calib/its-noise-aggregator.sh"

0 commit comments

Comments
 (0)