-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_dijetAna_pPb8160.sh
executable file
·45 lines (38 loc) · 1.61 KB
/
run_dijetAna_pPb8160.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
#!/bin/bash
# Load CMS environment
source ${HOME}/setup_cmsenv.sh
# Add path to the PDF sets
# Where the executable and the library are stored
EXEC_PATH=${HOME}/soft/jetAnalysis/processing
cd $EXEC_PATH
input_file_list=$1
output_file_name=$2
is_mc=$3
is_Pbgoing=$4
pt_hat_low=$5
pt_hat_hi=$6
jeuSyst=$7
jerSyst=$8
echo -e "Input file list : ${input_file_list}"
echo -e "Output file name : ${output_file_name}"
echo -e "Is MC : ${is_mc}"
echo -e "isPbGoingDir : ${is_Pbgoing}"
echo -e "ptHatLow : ${pt_hat_low}"
echo -e "ptHatHi : ${pt_hat_hi}"
echo -e "JEU syst : ${jeuSyst}"
echo -e "JER syst : ${jerSyst}"
# Run jetAna
if [ "$is_mc" -eq 1 ]; then
if [ "$is_Pbgoing" -eq 1 ]; then
../build/dijetAna_pPb8160 ${input_file_list} /eos/user/g/gnigmatk/ana/pPb8160/embedding/Pbgoing/${output_file_name} ${is_mc} ${is_Pbgoing} ${pt_hat_low} ${pt_hat_hi} ${jeuSyst} ${jerSyst}
else
../build/dijetAna_pPb8160 ${input_file_list} /eos/user/g/gnigmatk/ana/pPb8160/embedding/pgoing/${output_file_name} ${is_mc} ${is_Pbgoing} ${pt_hat_low} ${pt_hat_hi} ${jeuSyst} ${jerSyst}
fi
else
if [ "$is_Pbgoing" -eq 1 ]; then
../build/dijetAna_pPb8160 ${input_file_list} /eos/user/g/gnigmatk/ana/pPb8160/exp/Pbgoing/${output_file_name} ${is_mc} ${is_Pbgoing} ${pt_hat_low} ${pt_hat_hi} ${jeuSyst} ${jerSyst}
else
../build/dijetAna_pPb8160 ${input_file_list} /eos/user/g/gnigmatk/ana/pPb8160/exp/pgoing/${output_file_name} ${is_mc} ${is_Pbgoing} ${pt_hat_low} ${pt_hat_hi} ${jeuSyst} ${jerSyst}
fi
fi
echo -e "Data processing of ${input_file_list} is finished"