We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 648d801 commit 9e41e2cCopy full SHA for 9e41e2c
1 file changed
DATA/common/setenv_calib.sh
@@ -7,7 +7,11 @@
7
# if they are not explicitly disabled.
8
# Then, configure data spec according to enabled calibrations
9
10
-source $O2DPG_ROOT/DATA/common/setenv.sh
+# used to avoid sourcing this file 2x
11
+SETUP_CALIB=1
12
+
13
+# the check on LIST_OF_DETECTORS should ensure that setenv.sh was not called before
14
+[[ -z ${LIST_OF_DETECTORS+z} ]] && source $O2DPG_ROOT/DATA/common/setenv.sh
15
16
if [[ $BEAMTYPE != "cosmic" ]] || [[ $FORCECALIBRATIONS == 1 ]] ; then
17
0 commit comments