Skip to content

Commit 64b3bd1

Browse files
Fixing ctf_recreation script after modification of dpl-workflow etc
1 parent 936ac41 commit 64b3bd1

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

DATA/production/configurations/2021/OCT/apass4/async_pass.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,21 +82,21 @@ fi
8282

8383
if [[ -z $RUNNUMBER ]] || [[ -z $PERIOD ]] || [[ -z $BEAMTYPE ]] || [[ -z $PASS ]]; then
8484
echo "check env variables we need RUNNUMBER (--> $RUNNUMBER), PERIOD (--> $PERIOD), PASS (--> $PASS), BEAMTYPE (--> $BEAMTYPE)"
85-
return 3
85+
exit 3
8686
fi
8787

8888
echo processing run $RUNNUMBER, from period $PERIOD with $BEAMTYPE collisions and mode $MODE
8989

9090
###if [[ $MODE == "remote" ]]; then
9191
# common archive
9292
if [[ ! -f commonInput.tgz ]]; then
93-
echo "No commonInput.tgz found returning"
94-
return 2
93+
echo "No commonInput.tgz found exiting"
94+
exit 2
9595
fi
9696
# run specific archive
9797
if [[ ! -f runInput_$RUNNUMBER.tgz ]]; then
98-
echo "No runInput_$RUNNUMBER.tgz found returning"
99-
return 2
98+
echo "No runInput_$RUNNUMBER.tgz found exiting"
99+
exit 2
100100
fi
101101
tar -xzvf commonInput.tgz
102102
tar -xzvf runInput_$RUNNUMBER.tgz

DATA/production/configurations/2021/ctf_recreation/ctf_recreation.sh

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,36 +74,35 @@ fi
7474
if [[ -z "$DETCONFIG" ]]; then
7575
if [[ -z "ALIEN_JDL_DETCONFIG" ]]; then
7676
echo "nothing set the detector configuration to use, exiting"
77-
return 4
77+
exit 4
7878
else
7979
DETCONFIG="$ALIEN_JDL_DETCONFIG"
8080
fi
8181
fi
8282

8383
if [[ -z $RUNNUMBER ]] || [[ -z $YEAR ]] || [[ -z $PERIOD ]] || [[ -z $DETCONFIG ]] || [[ -z $BEAMTYPE ]] || [[ -z $PASS ]]; then
8484
echo "check env variables we need RUNNUMBER (--> $RUNNUMBER), YEAR (--> $YEAR), PERIOD (--> $PERIOD), DETCONFIG (--> $DETCONFIG), BEAMTYPE (--> $BEAMTYPE), PASS (--> $PASS)"
85-
return 3
85+
exit 3
8686
fi
8787

8888
echo "processing run $RUNNUMBER, from year $YEAR and period $PERIOD with beamtype $BEAMTYPE, pass $PASS. Detector config will be $DETCONFIG"
8989

9090
###if [[ $MODE == "remote" ]]; then
9191
# common archive
9292
if [[ ! -f commonInput.tgz ]]; then
93-
echo "No commonInput.tgz found returning"
94-
return 2
93+
echo "No commonInput.tgz found exiting"
94+
exit 2
9595
fi
9696
# run specific archive
9797
if [[ $DETCONFIG == "muon" ]] || [[ $DETCONFIG == "centralBarrel" ]]; then
9898
if [[ ! -f runInput_$RUNNUMBER.tgz ]]; then
99-
echo "No runInput_$RUNNUMBER.tgz found returning"
100-
return 2
99+
echo "No runInput_$RUNNUMBER.tgz found exiting"
100+
exit 2
101101
else
102102
tar -xzvf runInput_$RUNNUMBER.tgz
103103
fi
104104
fi
105105
tar -xzvf commonInput.tgz
106-
ln -s o2sim_geometry.root o2sim_geometry-aligned.root
107106

108107
###fi
109108

@@ -128,7 +127,7 @@ else
128127
echo "No setenv_extra_ctf_recreation_$DETCONFIG for $ALIEN_JDL_LPMANCHORYEAR in O2DPG"
129128
echo " Processing cannot start"
130129
echo "*********************************************************************************************************"
131-
return 5
130+
exit 5
132131
fi
133132
fi
134133

@@ -148,6 +147,8 @@ else
148147
fi
149148

150149
ln -sf $O2DPG_ROOT/DATA/common/setenv.sh
150+
ln -sf $O2DPG_ROOT/DATA/common/getCommonArgs.sh
151+
ln -sf $O2_ROOT/prodtests/full-system-test/workflow-setup.sh
151152

152153
export TFDELAY=0.1
153154
if [[ $DETCONFIG == "centralBarrel" ]]; then

0 commit comments

Comments
 (0)