-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprocess.sh
More file actions
66 lines (52 loc) · 975 Bytes
/
process.sh
File metadata and controls
66 lines (52 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
ARG=${1}
VERSION=""
STEP=0
STOPEVT=0
WRONGSIGN=0
if [[ $# -ge 2 ]]; then
VERSION=${2}
fi
if [[ $# -ge 3 ]]; then
STEP=${3}
fi
if [[ $# -ge 4 ]]; then
WRONGSIGN=${4}
fi
if [[ $# -ge 5 ]]; then
STOPEVT=${5}
fi
function processFull()
{
if [ $5 -le 0 ]; then
. ApplyTFweight.sh $1 $2 $3
RETURNCODE=$?
if [ $RETURNCODE -ne 0 ]; then
echo "Abort due to error. "
return $RETURNCODE
fi
fi
if [ $5 -le 1 ]; then
. SelectTauCandidate.sh $1 $2 $4
RETURNCODE=$?
if [ $RETURNCODE -ne 0 ]; then
echo "Abort due to error. "
return $RETURNCODE
fi
fi
if [ $5 -le 2 ]; then
. AddAnaBDT.sh $1 $2
#sleep 2
#./anaMVA/inference/ApplyXGBOweight.sh $1 $2
RETURNCODE=$?
if [ $RETURNCODE -ne 0 ]; then
echo "Abort due to error. "
return $RETURNCODE
fi
fi
if [ $5 -ge 3 ]; then
echo "ERROR: Only 3 steps. Starting from step $4 will have no effect. "
fi
}
# Main
processFull $ARG $VERSION $STOPEVT $WRONGSIGN $STEP