Skip to content

Commit e851115

Browse files
authored
Topology generation fixes for staging (#1491)
* Only enable CTP lumi scaling if its available * Disable CALIB_TPC_IDC on staging due to lack of resources
1 parent 045895f commit e851115

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

DATA/common/setenv.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ DISABLE_ROOT_INPUT="--disable-root-input"
165165
# Special detector related settings
166166
if [[ -z "${TPC_CORR_SCALING:-}" ]]; then # TPC corr.map lumi scaling options, any combination of --lumi-type <0,1,2> --corrmap-lumi-mode <0,1> and TPCCorrMap... configurable param
167167
TPC_CORR_SCALING=
168-
if [[ $BEAMTYPE == "pp" ]] || [[ $BEAMTYPE == "PbPb" ]]; then TPC_CORR_SCALING+="--lumi-type 1 TPCCorrMap.lumiInstFactor=2.414"; fi
168+
if ( [[ $BEAMTYPE == "pp" ]] || [[ $BEAMTYPE == "PbPb" ]] ) && has_detector CTP; then TPC_CORR_SCALING+="--lumi-type 1 TPCCorrMap.lumiInstFactor=2.414"; fi
169169
if [[ $BEAMTYPE == "cosmic" ]]; then TPC_CORR_SCALING=" TPCCorrMap.lumiMean=-1;"; fi # for COSMICS we disable all corrections
170170
export TPC_CORR_SCALING=$TPC_CORR_SCALING
171171
fi

DATA/common/setenv_calib.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ if [[ $BEAMTYPE != "cosmic" ]] || [[ ${FORCECALIBRATIONS:-} == 1 ]] ; then
7676
if [[ $CAN_DO_CALIB_TPC_VDRIFTTGL == 1 ]]; then
7777
if [[ -z ${CALIB_TPC_VDRIFTTGL+x} ]]; then CALIB_TPC_VDRIFTTGL=1; fi
7878
fi
79-
# IDCs (by default we enable it for running the synch. reco on the EPNs)
79+
# 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)
8080
if [[ $CAN_DO_CALIB_TPC_IDC == 1 ]]; then
8181
if [[ -z ${CALIB_TPC_IDC+x} ]]; then
82-
if [[ $EPNSYNCMODE == 1 ]]; then
82+
if [[ $EPNSYNCMODE == 1 ]] && [[ "${GEN_TOPO_DEPLOYMENT_TYPE:-}" != "ALICE_STAGING" ]]; then
8383
CALIB_TPC_IDC=1;
8484
else
8585
CALIB_TPC_IDC=0;

0 commit comments

Comments
 (0)