Skip to content

Commit 81d06a8

Browse files
authored
calib-workflow: Enable TPC IDC and SAC calib also in non-COSMIC runs by default (#1557)
1 parent 206fc16 commit 81d06a8

File tree

1 file changed

+25
-23
lines changed

1 file changed

+25
-23
lines changed

DATA/common/setenv_calib.sh

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if [[ ${DISABLE_TRD_PH:-} == 1 ]]; then CAN_DO_CALIB_TRD_T0=0; fi
4242
: ${CALIB_TPC_SCDCALIB_SLOTLENGTH:=600} # the slot length needs to be known both on the aggregator and the processing nodes, therefore it is defined (in seconds!) here
4343
: ${CALIB_TPC_SCDCALIB_SENDTRKDATA:=1} # by default, we want to write the track information in addition to unbinned residuals to allow finer filtering offline
4444

45-
if [[ $BEAMTYPE != "cosmic" ]] || [[ ${FORCECALIBRATIONS:-} == 1 ]] ; then
45+
if [[ $BEAMTYPE != "cosmic" ]] || [[ ${FORCECALIBRATIONS:-} == 1 ]] ; then # Calibrations enabled in non-COSMIC runs
4646

4747
# here we won't deal with calibrations only for async! e.g. EMC_ASYNC_RECALIB; we want that they are always explicitly enabled
4848

@@ -88,26 +88,6 @@ if [[ $BEAMTYPE != "cosmic" ]] || [[ ${FORCECALIBRATIONS:-} == 1 ]] ; then
8888
if [[ $CAN_DO_CALIB_TPC_VDRIFTTGL == 1 ]]; then
8989
if [[ -z ${CALIB_TPC_VDRIFTTGL+x} ]]; then CALIB_TPC_VDRIFTTGL=1; fi
9090
fi
91-
# IDCs (by default we enable it for running the synch. reco on the EPNs, but not on staging since we have only 1 calibration node available)
92-
if [[ $CAN_DO_CALIB_TPC_IDC == 1 ]]; then
93-
if [[ -z ${CALIB_TPC_IDC+x} ]]; then
94-
if [[ $EPNSYNCMODE == 1 ]] && [[ "${GEN_TOPO_DEPLOYMENT_TYPE:-}" != "ALICE_STAGING" ]]; then
95-
CALIB_TPC_IDC=1;
96-
else
97-
CALIB_TPC_IDC=0;
98-
fi
99-
fi
100-
fi
101-
# SAC (by default we enable it for running the synch. reco on the EPNs)
102-
if [[ $CAN_DO_CALIB_TPC_SAC == 1 ]]; then
103-
if [[ -z ${CALIB_TPC_SAC+x} ]]; then
104-
if [[ $EPNSYNCMODE == 1 ]]; then
105-
CALIB_TPC_SAC=1;
106-
else
107-
CALIB_TPC_SAC=0;
108-
fi
109-
fi
110-
fi
11191

11292
# calibrations for TRD
11393
if [[ $CAN_DO_CALIB_TRD_VDRIFTEXB == 1 ]] ; then
@@ -170,6 +150,28 @@ if [[ $BEAMTYPE != "cosmic" ]] || [[ ${FORCECALIBRATIONS:-} == 1 ]] ; then
170150
fi
171151
fi
172152

153+
# Calibrations irrespective of COSMIC or non-COSMIC run:
154+
# IDCs (by default we enable it for running the synch. reco on the EPNs, but not on staging since we have only 1 calibration node available)
155+
if [[ $CAN_DO_CALIB_TPC_IDC == 1 ]]; then
156+
if [[ -z ${CALIB_TPC_IDC+x} ]]; then
157+
if [[ $EPNSYNCMODE == 1 ]] && [[ "${GEN_TOPO_DEPLOYMENT_TYPE:-}" != "ALICE_STAGING" ]]; then
158+
CALIB_TPC_IDC=1;
159+
else
160+
CALIB_TPC_IDC=0;
161+
fi
162+
fi
163+
fi
164+
# SAC (by default we enable it for running the synch. reco on the EPNs)
165+
if [[ $CAN_DO_CALIB_TPC_SAC == 1 ]]; then
166+
if [[ -z ${CALIB_TPC_SAC+x} ]]; then
167+
if [[ $EPNSYNCMODE == 1 ]]; then
168+
CALIB_TPC_SAC=1;
169+
else
170+
CALIB_TPC_SAC=0;
171+
fi
172+
fi
173+
fi
174+
173175
( [[ -z ${CALIB_FT0_INTEGRATEDCURR:-} ]] || [[ $CAN_DO_CALIB_FT0_INTEGRATEDCURR == 0 ]] ) && CALIB_FT0_INTEGRATEDCURR=0
174176
( [[ -z ${CALIB_FV0_INTEGRATEDCURR:-} ]] || [[ $CAN_DO_CALIB_FV0_INTEGRATEDCURR == 0 ]] ) && CALIB_FV0_INTEGRATEDCURR=0
175177
( [[ -z ${CALIB_FDD_INTEGRATEDCURR:-} ]] || [[ $CAN_DO_CALIB_FDD_INTEGRATEDCURR == 0 ]] ) && CALIB_FDD_INTEGRATEDCURR=0
@@ -201,8 +203,8 @@ fi
201203
( [[ -z ${CALIB_MFT_DEADMAP_TIME:-} ]] || [[ $CAN_DO_CALIB_MFT_DEADMAP_TIME == 0 ]] ) && CALIB_MFT_DEADMAP_TIME=0
202204
# for async:
203205
( [[ -z ${CALIB_EMC_ASYNC_RECALIB:-} ]] || [[ $CAN_DO_CALIB_EMC_ASYNC_RECALIB == 0 ]] ) && CALIB_EMC_ASYNC_RECALIB=0
204-
( [[ -z ${CALIB_ASYNC_EXTRACTTPCCURRENTS:-} ]] || [[ $CAN_DO_CALIB_ASYNC_EXTRACTTPCCURRENTS == 0 ]] ) && CALIB_ASYNC_EXTRACTTPCCURRENTS=0
205-
( [[ -z ${CALIB_ASYNC_DISABLE3DCURRENTS:-} ]] || [[ $CAN_DO_CALIB_ASYNC_DISABLE3DCURRENTS == 0 ]] ) && CALIB_ASYNC_DISABLE3DCURRENTS=0
206+
( [[ -z ${CALIB_ASYNC_EXTRACTTPCCURRENTS:-} ]] || [[ $CAN_DO_CALIB_ASYNC_EXTRACTTPCCURRENTS == 0 ]] ) && CALIB_ASYNC_EXTRACTTPCCURRENTS=0
207+
( [[ -z ${CALIB_ASYNC_DISABLE3DCURRENTS:-} ]] || [[ $CAN_DO_CALIB_ASYNC_DISABLE3DCURRENTS == 0 ]] ) && CALIB_ASYNC_DISABLE3DCURRENTS=0
206208
: ${ON_SKIMMED_DATA:=0}
207209
( [[ -z ${CALIB_ASYNC_EXTRACTTIMESERIES:-} ]] || [[ $CAN_DO_CALIB_ASYNC_EXTRACTTIMESERIES == 0 ]] ) && CALIB_ASYNC_EXTRACTTIMESERIES=0
208210

0 commit comments

Comments
 (0)