@@ -13,38 +13,75 @@ if [[ $BEAMTYPE != "cosmic" ]] && [[ $FORCECALIBRATIONS != 1 ]] ; then
1313
1414 # calibrations for primary vertex
1515 if has_detector_calib ITS && has_detectors_reco ITS && has_detector_matching PRIMVTX && [[ ! -z " $VERTEXING_SOURCES " ]]; then
16- if [[ -z $CALIB_PRIMVTX_MEANVTX ]]; then CALIB_PRIMVTX_MEANVTX=1; fi
16+ if [[ -z ${ CALIB_PRIMVTX_MEANVTX+x} ]]; then CALIB_PRIMVTX_MEANVTX=1; fi
1717 else
1818 CALIB_PRIMVTX_MEANVTX=0
1919 fi
2020
2121 # calibrations for TOF
2222 if has_detector_calib TOF && has_detector_reco TOF; then
2323 if has_detector_matching ITSTPCTOF || has_detector_matching ITSTPCTRDTOF; then
24- if [[ -z $CALIB_TOF_LHCPHASE ]]; then CALIB_TOF_LHCPHASE=1; fi
25- if [[ -z $CALIB_TOF_CHANNELOFFSETS ]]; then CALIB_TOF_CHANNELOFFSETS=1; fi
24+ if [[ -z ${ CALIB_TOF_LHCPHASE+x} ]]; then CALIB_TOF_LHCPHASE=1; fi
25+ if [[ -z ${ CALIB_TOF_CHANNELOFFSETS+x} ]]; then CALIB_TOF_CHANNELOFFSETS=1; fi
2626 else
2727 CALIB_TOF_LHCPHASE=0
2828 CALIB_TOF_CHANNELOFFSETS=0
2929 fi
30- if [[ -z $CALIB_TOF_DIAGNOSTICS ]]; then CALIB_TOF_DIAGNOSTICS=1; fi
30+ if [[ -z ${ CALIB_TOF_DIAGNOSTICS+x} ]]; then CALIB_TOF_DIAGNOSTICS=1; fi
3131 else
3232 CALIB_TOF_DIAGNOSTICS=0
3333 fi
3434
3535 # calibrations for TPC
3636 if has_detector_calib TPC && has_detectors ITS TPC TOF TRD; then
3737 if has_detectors TPC ITS TRD TOF && has_detector_matching ITSTPCTRDTOF; then
38- if [[ -z $CALIB_TPC_SCDCALIB ]]; then CALIB_TPC_SCDCALIB=1; fi
38+ if [[ -z ${ CALIB_TPC_SCDCALIB+x} ]]; then CALIB_TPC_SCDCALIB=1; fi
3939 else
4040 CALIB_TPC_SCDCALIB=0
4141 fi
4242 fi
43+
44+ # calibrations for EMC
45+ if has_detector_calib EMC && has_detector_reco EMC; then
46+ if [[ -z ${CALIB_EMC_CHANNELCALIB+x} ]]; then CALIB_EMC_CHANNELCALIB=1; fi
47+ else
48+ CALIB_EMC_CHANNELCALIB=0
49+ fi
50+
51+ # calibrations for PHS
52+ if has_detector_calib PHS && has_detector_reco PHS; then
53+ if [[ -z ${CALIB_PHS_ENERGYCALIB+x} ]]; then CALIB_PHS_ENERGYCALIB=1; fi
54+ if [[ -z ${CALIB_PHS_BADMAPCALIB+x} ]]; then CALIB_PHS_BADMAPCALIB=1; fi
55+ if [[ -z ${CALIB_PHS_TURNONCALIB+x} ]]; then CALIB_PHS_TURNONCALIB=1; fi
56+ if [[ -z ${CALIB_PHS_RUNBYRUNCALIB+x} ]]; then CALIB_PHS_RUNBYRUNCALIB=1; fi
57+ else
58+ CALIB_PHS_ENERGYCALIB=0
59+ CALIB_PHS_BADMAPCALIB=0
60+ CALIB_PHS_TURNONCALIB=0
61+ CALIB_PHS_RUNBYRUNCALIB=0
62+ fi
63+
4364fi
4465
66+ # prim vtx
4567if [[ $CALIB_PRIMVTX_MEANVTX == 1 ]] ; then add_semicolon_separated CALIBDATASPEC " pvtx:GLO/PVTX/0" ; fi
68+
69+ # TOF
4670if [[ $CALIB_TOF_LHCPHASE == 1 ]] || [[ $CALIB_TOF_CHANNELOFFSETS == 1 ]]; then add_semicolon_separated CALIBDATASPEC " calibTOF:TOF/CALIBDATA/0" ; fi
4771if [[ $CALIB_TOF_DIAGNOSTICS == 1 ]]; then add_semicolon_separated CALIBDATASPEC " diagWords:TOF/DIAFREQ/0" ; fi
4872
73+ # EMC
74+ if [[ $CALIB_EMC_CHANNELCALIB == 1 ]]; then add_semicolon_separated CALIBDATASPEC " cellsEMC:EMC/CELLS/0;cellsTrgREMC:EMC/CELLSTRGR/0" ; fi
75+
76+ # PHS
77+ if [[ $CALIB_PHS_ENERGYCALIB == 1 ]] || [[ $CALIB_PHS_TURNONCALIB == 1 ]] || [[ $CALIB_PHS_RUNBYRUNCALIB == 1 ]]; then
78+ add_semicolon_separated CALIBDATASPEC " clsPHS:PHS/CLUSTERS/0;"
79+ add_semicolon_separated CALIBDATASPEC " clTRPHS:PHS/CLUSTERTRIGREC/0;"
80+ fi
81+ if [[ $CALIB_PHS_ENERGYCALIB == 1 ]]; then add_semicolon_separated CALIBDATASPEC " cluelementsPHS:PHS/CLUELEMENTS/0;" ; fi
82+ if [[ $CALIB_PHS_BADMAPCALIB == 1 ]] || [[ $CALIB_PHS_TURNONCALIB == 1 ]]; then add_semicolon_separated CALIBDATASPEC " cellsPHS:PHS/CELLS/0;" ; fi
83+ if [[ $CALIB_PHS_TURNONCALIB == 1 ]]; then add_semicolon_separated CALIBDATASPEC " cellsTRPHS:PHS/CELLTRIGREC/0;" ; fi
84+
85+ # printing for debug
4986echo CALIBDATASPEC = $CALIBDATASPEC 1>&2
5087
0 commit comments