Skip to content

Commit d4c389b

Browse files
aphecetchechiarazampolli
authored andcommitted
MCH: add badchannel calibration
1 parent 97b8a18 commit d4c389b

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/bash
2+
3+
source common/setenv.sh
4+
5+
# ---------------------------------------------------------------------------------------------------------------------
6+
# Set general arguments
7+
ARGS_ALL="--session default --severity $SEVERITY --shm-segment-size $SHMSIZE $ARGS_ALL_EXTRA"
8+
ARGS_ALL+=" --infologger-severity $INFOLOGGER_SEVERITY"
9+
ARGS_ALL+=" --monitoring-backend influxdb-unix:///tmp/telegraf.sock --resources-monitoring 60"
10+
if [ $SHMTHROW == 0 ]; then
11+
ARGS_ALL+=" --shm-throw-bad-alloc 0"
12+
fi
13+
if [ $NORATELOG == 1 ]; then
14+
ARGS_ALL+=" --fairmq-rate-logging 0"
15+
fi
16+
ARGS_ALL_CONFIG="NameConf.mDirGRP=$FILEWORKDIR;NameConf.mDirGeom=$FILEWORKDIR;NameConf.mDirCollContext=$FILEWORKDIR;NameConf.mDirMatLUT=$FILEWORKDIR;keyval.input_dir=$FILEWORKDIR;keyval.output_dir=/dev/null;$ALL_EXTRA_CONFIG"
17+
18+
PROXY_INSPEC="A:MCH/PDIGITS/0"
19+
20+
BADCHANNEL_CONFIG="${ARGS_ALL_CONFIG};MCHBadChannelCalibratorParam.minRequiredNofEntriesPerChannel=100;MCHBadChannelCalibratorParam.minRequiredCalibratedFraction=0.5;MCHBadChannelCalibratorParam.onlyAtEndOfStream=false"
21+
22+
WORKFLOW="o2-dpl-raw-proxy $ARGS_ALL --proxy-name mch-badchannel-input-proxy --dataspec \"$PROXY_INSPEC\" --network-interface ib0 --channel-config \"name=mch-badchannel-input-proxy,method=bind,type=pull,rateLogging=0,transport=zeromq\" | "
23+
WORKFLOW+="o2-calibration-mch-badchannel-calib-workflow $ARGS_ALL --configKeyValues \"$BADCHANNEL_CONFIG\" | "
24+
WORKFLOW+="o2-calibration-ccdb-populator-workflow $ARGS_ALL --configKeyValues \"$ARGS_ALL_CONFIG\" --ccdb-path=\"http://ccdb-test.cern.ch:8080\" --sspec-min 0 --sspec-max 0 | "
25+
WORKFLOW+="o2-calibration-ccdb-populator-workflow $ARGS_ALL --configKeyValues \"$ARGS_ALL_CONFIG\" --ccdb-path=\"http://alio2-cr1-flp199.cern.ch:8083 \" --sspec-min 1 --sspec-max 1 --name-extention dcs| "
26+
WORKFLOW+="o2-dpl-run $ARGS_ALL $GLOBALDPLOPT"
27+
28+
if [ $WORKFLOWMODE == "print" ]; then
29+
echo Workflow command:
30+
echo $WORKFLOW | sed "s/| */|\n/g"
31+
else
32+
# Execute the command we have assembled
33+
WORKFLOW+=" --$WORKFLOWMODE"
34+
eval $WORKFLOW
35+
fi
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
#!/bin/bash
3+
4+
source common/setenv.sh
5+
6+
# ---------------------------------------------------------------------------------------------------------------------
7+
# Set general arguments
8+
ARGS_ALL="--session default --severity $SEVERITY --shm-segment-size $SHMSIZE $ARGS_ALL_EXTRA"
9+
ARGS_ALL+=" --infologger-severity $INFOLOGGER_SEVERITY"
10+
ARGS_ALL+=" --monitoring-backend influxdb-unix:///tmp/telegraf.sock --resources-monitoring 60"
11+
if [ $SHMTHROW == 0 ]; then
12+
ARGS_ALL+=" --shm-throw-bad-alloc 0"
13+
fi
14+
if [ $NORATELOG == 1 ]; then
15+
ARGS_ALL+=" --fairmq-rate-logging 0"
16+
fi
17+
ARGS_ALL_CONFIG="NameConf.mDirGRP=$FILEWORKDIR;NameConf.mDirGeom=$FILEWORKDIR;NameConf.mDirCollContext=$FILEWORKDIR;NameConf.mDirMatLUT=$FILEWORKDIR;keyval.input_dir=$FILEWORKDIR;keyval.output_dir=/dev/null;$ALL_EXTRA_CONFIG"
18+
19+
PROXY_INSPEC="A:MCH/RAWDATA;B:FLP/DISTSUBTIMEFRAME/0"
20+
PROXY_OUTSPEC="downstream:MCH/PDIGITS/0"
21+
22+
WORKFLOW="o2-dpl-raw-proxy ${ARGS_ALL} --dataspec \"$PROXY_INSPEC\" --channel-config \"name=readout-proxy,type=pull,method=connect,address=ipc://@$INRAWCHANNAME,transport=shmem,rateLogging=0\" | "
23+
WORKFLOW+="o2-mch-pedestal-decoding-workflow --logging-interval 10 ${ARGS_ALL} --configKeyValues \"$ARGS_ALL_CONFIG\" | "
24+
WORKFLOW+="o2-dpl-output-proxy ${ARGS_ALL} --dataspec \"$PROXY_OUTSPEC\" --proxy-channel-name mch-badchannel-input-proxy --channel-config \"name=mch-badchannel-input-proxy,method=connect,type=push,transport=zeromq,rateLogging=0\" | "
25+
WORKFLOW+="o2-dpl-run ${ARGS_ALL} ${GLOBALDPLOPT}"
26+
27+
if [ $WORKFLOWMODE == "print" ]; then
28+
echo Workflow command:
29+
echo $WORKFLOW | sed "s/| */|\n/g"
30+
else
31+
# Execute the command we have assembled
32+
WORKFLOW+=" --$WORKFLOWMODE"
33+
eval $WORKFLOW
34+
fi

DATA/production/standalone-calibration.desc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ TPC-pedestal: "O2PDPSuite" reco,1,1," production/calib/tpc-pedestal.sh"
1515
TPC-laser: "O2PDPSuite" reco,1,1,"SHMSIZE=$((128 << 30)) GPUTYPE=HIP GPUMEMSIZE=$(( 24 << 30 )) STMEMSIZE=$(( 5 << 30 )) production/calib/tpc-laser.sh"
1616

1717
MFT-noise-calibration: "O2PDPSuite" reco,20,20,"production/calib/mft-noise-processing.sh" calib,20,"production/calib/mft-noise-aggregator.sh"
18+
19+
MCH-badchannel-calibration: "O2PDPSuite" reco,5,5,"production/calib/mch-badchannel-processing.sh" calib,1,"production/calib/mch-badchannel-aggregator.sh"

0 commit comments

Comments
 (0)