-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun.sh
executable file
·62 lines (55 loc) · 1.78 KB
/
run.sh
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
#!/bin/bash
echo 'channel' $1
echo 'DM Mass' $2
echo 'Location' $3
echo 'Process' $4
echo 'Type' $5
echo 'Event Number' $6
echo 'Number of Bins' $7
echo 'Lower Energy Bound' $8
echo 'Binning Scale' $9
if [ $5 == 'secluded' ]
then
echo 'Production Spot Density' ${10}
echo 'Mediator Mass' ${11}
python set_up.py --channel $1 --mass $2 --bins $7 --Nevent $6 --location $3 --process $4 --type $5 --mass_phi ${11}
if [ -z "${12}" ]
then
./main $1 $2 $7 $3 $4 ${10} 1 $9 $8 ${11} $5 > ./output/$1_$2_${11}_$6_${10}_$4_$5_$3.out &
else
echo 'Seed' ${12}
./main $1 $2 $7 $3 $4 ${10} ${12} $9 $8 ${11} $5 > ./output/$1_$2_${11}_$6_${10}_$4_$5_$3.out &
fi
elif [ $5 != 'secluded' ]
then
python set_up.py --channel $1 --mass $2 --bins $7 --Nevent $6 --location $3 --process $4 --type $5
if [ $3 == 'Sun' ]
then
if [ -z "${10}" ]
then
./main $1 $2 $7 $3 $4 148.9 1 $9 $8 $2 $5 > ./output/$1_$2_$6_${10}_$4_$5_$3.out &
else
echo 'seed' ${10}
./main $1 $2 $7 $3 $4 148.9 ${10} $9 $8 $2 $5 > ./output/$1_$2_$6_${10}_$4_$5_$3.out &
fi
elif [ $3 == 'Earth' ]
then
if [ -z "${10}" ]
then
./main $1 $2 $7 $3 $4 13.08849999999999802 1 $9 $8 $2 $5 > ./output/$1_$2_$6_${10}_$4_$5_$3.out &
else
echo 'seed' ${10}
./main $1 $2 $7 $3 $4 13.08849999999999802 ${10} $9 $8 $2 $5 > ./output/$1_$2_$6_${10}_$4_$5_$3.out &
fi
elif [ $3 == 'Halo' ]
then
if [ -z "${10}" ]
then
./main $1 $2 $7 $3 $4 0. 1 $9 $8 $2 $5 > ./output/$1_$2_$6_${10}_$4_$5_$3.out &
else
echo 'seed' ${10}
./main $1 $2 $7 $3 $4 0. ${10} $9 $8 $2 $5 > ./output/$1_$2_$6_${10}_$4_$5_$3.out &
fi
fi
fi
echo "Start running ..."