@@ -19,52 +19,38 @@ if [[ $BEAMTYPE != "cosmic" ]] || [[ $FORCECALIBRATIONS == 1 ]] ; then
1919 # calibrations for primary vertex
2020 if has_detector_calib ITS && has_detectors_reco ITS && has_detector_matching PRIMVTX && [[ ! -z " $VERTEXING_SOURCES " ]]; then
2121 if [[ -z ${CALIB_PRIMVTX_MEANVTX+x} ]]; then CALIB_PRIMVTX_MEANVTX=1; fi
22- else
23- CALIB_PRIMVTX_MEANVTX=0
2422 fi
2523
2624 # calibrations for TOF
2725 if has_detector_calib TOF && has_detector_reco TOF; then
2826 if ( has_detectors_reco ITS TPC && has_detector_matching ITSTPCTOF ) || ( has_detectors_reco ITS TPC TRD && has_detector_matching ITSTPCTRDTOF ); then
2927 if [[ -z ${CALIB_TOF_LHCPHASE+x} ]]; then CALIB_TOF_LHCPHASE=1; fi
3028 if [[ -z ${CALIB_TOF_CHANNELOFFSETS+x} ]]; then CALIB_TOF_CHANNELOFFSETS=1; fi
31- else
32- CALIB_TOF_LHCPHASE=0
33- CALIB_TOF_CHANNELOFFSETS=0
3429 fi
3530 if [[ -z ${CALIB_TOF_DIAGNOSTICS+x} ]]; then CALIB_TOF_DIAGNOSTICS=1; fi
36- else
37- CALIB_TOF_DIAGNOSTICS=0
3831 fi
3932
4033 # calibrations for TPC
4134 if has_detector_calib TPC; then
4235 if has_detectors ITS TPC TOF TRD; then
4336 if has_detectors TPC ITS TRD TOF && has_detector_matching ITSTPCTRDTOF; then
4437 if [[ -z ${CALIB_TPC_SCDCALIB+x} ]]; then CALIB_TPC_SCDCALIB=1; fi
45- else
46- CALIB_TPC_SCDCALIB=0
4738 fi
4839 fi
49- if [[ -z ${CALIB_TPC_TIMEGAIN+x} ]]; then CALIB_TPC_TIMEGAIN=1; fi
50- if [[ -z ${CALIB_TPC_RESPADGAIN+x} ]]; then CALIB_TPC_RESPADGAIN=1; fi
51- else
52- CALIB_TPC_TIMEGAIN=0
53- CALIB_TPC_RESPADGAIN=0
40+ if has_processing_step TPC_DEDX; then
41+ if [[ -z ${CALIB_TPC_TIMEGAIN+x} ]]; then CALIB_TPC_TIMEGAIN=1; fi
42+ if [[ -z ${CALIB_TPC_RESPADGAIN+x} ]]; then CALIB_TPC_RESPADGAIN=1; fi
43+ fi
5444 fi
5545
5646 # calibrations for TRD
5747 if has_detector_calib TRD && has_detectors ITS TPC TRD ; then
5848 if [[ -z ${CALIB_TRD_VDRIFTEXB+x} ]]; then CALIB_TRD_VDRIFTEXB=1; fi
59- else
60- CALIB_TRD_VDRIFTEXB=0
6149 fi
6250
6351 # calibrations for EMC
6452 if has_detector_calib EMC && has_detector_reco EMC; then
6553 if [[ -z ${CALIB_EMC_CHANNELCALIB+x} ]]; then CALIB_EMC_CHANNELCALIB=1; fi
66- else
67- CALIB_EMC_CHANNELCALIB=0
6854 fi
6955
7056 # calibrations for PHS
@@ -73,21 +59,29 @@ if [[ $BEAMTYPE != "cosmic" ]] || [[ $FORCECALIBRATIONS == 1 ]] ; then
7359 if [[ -z ${CALIB_PHS_BADMAPCALIB+x} ]]; then CALIB_PHS_BADMAPCALIB=1; fi
7460 if [[ -z ${CALIB_PHS_TURNONCALIB+x} ]]; then CALIB_PHS_TURNONCALIB=1; fi
7561 if [[ -z ${CALIB_PHS_RUNBYRUNCALIB+x} ]]; then CALIB_PHS_RUNBYRUNCALIB=1; fi
76- else
77- CALIB_PHS_ENERGYCALIB=0
78- CALIB_PHS_BADMAPCALIB=0
79- CALIB_PHS_TURNONCALIB=0
80- CALIB_PHS_RUNBYRUNCALIB=0
8162 fi
8263
8364 # calibrations for CPV
8465 if has_detector_calib CPV && has_detector_reco CPV; then
8566 if [[ -z ${CALIB_CPV_GAIN+x} ]]; then CALIB_CPV_GAIN=1; fi
86- else
87- CALIB_CPV_GAIN=0
8867 fi
8968fi
9069
70+ [[ -z ${CALIB_PRIMVTX_MEANVTX} ]] && CALIB_PRIMVTX_MEANVTX=0
71+ [[ -z ${CALIB_TOF_LHCPHASE} ]] && CALIB_TOF_LHCPHASE=0
72+ [[ -z ${CALIB_TOF_CHANNELOFFSETS} ]] && CALIB_TOF_CHANNELOFFSETS=0
73+ [[ -z ${CALIB_TOF_DIAGNOSTICS} ]] && CALIB_TOF_DIAGNOSTICS=0
74+ [[ -z ${CALIB_TPC_SCDCALIB} ]] && CALIB_TPC_SCDCALIB=0
75+ [[ -z ${CALIB_TPC_TIMEGAIN} ]] && CALIB_TPC_TIMEGAIN=0
76+ [[ -z ${CALIB_TPC_RESPADGAIN} ]] && CALIB_TPC_RESPADGAIN=0
77+ [[ -z ${CALIB_TRD_VDRIFTEXB} ]] && CALIB_TRD_VDRIFTEXB=0
78+ [[ -z ${CALIB_EMC_CHANNELCALIB} ]] && CALIB_EMC_CHANNELCALIB=0
79+ [[ -z ${CALIB_PHS_ENERGYCALIB} ]] && CALIB_PHS_ENERGYCALIB=0
80+ [[ -z ${CALIB_PHS_BADMAPCALIB} ]] && CALIB_PHS_BADMAPCALIB=0
81+ [[ -z ${CALIB_PHS_TURNONCALIB} ]] && CALIB_PHS_TURNONCALIB=0
82+ [[ -z ${CALIB_PHS_RUNBYRUNCALIB} ]] && CALIB_PHS_RUNBYRUNCALIB=0
83+ [[ -z ${CALIB_CPV_GAIN} ]] && CALIB_CPV_GAIN=0
84+
9185if [[ " 0$GEN_TOPO_VERBOSE " == " 01" ]]; then
9286 echo " CALIB_PRIMVTX_MEANVTX = $CALIB_PRIMVTX_MEANVTX " 1>&2
9387 echo " CALIB_TOF_LHCPHASE = $CALIB_TOF_LHCPHASE " 1>&2
0 commit comments