-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrun.sh
38 lines (23 loc) · 917 Bytes
/
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
#!/bin/bash
DATALOC=""
MCLOC=""
# Exit if any command returns a non-zero exit code
set -e
kinit -k -t user.keytab
root -q -b 1_preselection/Reduce_2PiMuMuOS_MagDown-11.c
root -q -b 1_preselection/Reduce_2PiMuMuOS_MagDown-12.c
root -q -b 1_preselection/Reduce_2PiMuMuOS_MagUp-11.c
root -q -b 1_preselection/Reduce_2PiMuMuOS_MagUp-12.c
# Merge
hadd -f D2PiMuMuOS.root D2hMuMu12_MagD_2PiMuMuOS_NTuple_Reduced.root D2hMuMu12_MagU_2PiMuMuOS_NTuple_Reduced.root D2hMuMu11_MagD_2PiMuMuOS_NTuple_Reduced.root D2hMuMu11_MagU_2PiMuMuOS_NTuple_Reduced.root
# Train MVA
root -q -b 2_mvaselection/TMVAClassification.C\($MCLOC,$DATALOC\)
# Add BDT
root -q -b 2_mvaselection/addBDT.C\($DATALOC\)
# Optimise selection
root -q -b 2_mvaselection/Optimise.C\($DATALOC\)
# Model fixing
root -q -b 3_fitting/ModelFixing.C\($DATALOC\)
# Mass fit
root -q -b 3_fitting/OSMassFit.C\($DATALOC\)
echo "Completed successfully"