-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
182 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/bash | ||
# shellcheck disable=SC2086,SC2043 | ||
|
||
#################################################################################################### | ||
# Checking LP SF for each year | ||
# Author: Raghav Kansal | ||
#################################################################################################### | ||
|
||
MAIN_DIR="../../.." | ||
data_dir="$MAIN_DIR/../data/skimmer/24Mar14UpdateData" | ||
TAG="" | ||
|
||
|
||
options=$(getopt -o "" --long "tag:" -- "$@") | ||
eval set -- "$options" | ||
|
||
while true; do | ||
case "$1" in | ||
--tag) | ||
shift | ||
TAG=$1 | ||
;; | ||
--) | ||
shift | ||
break;; | ||
\?) | ||
echo "Invalid option: -$OPTARG" >&2 | ||
exit 1 | ||
;; | ||
:) | ||
echo "Option -$OPTARG requires an argument." >&2 | ||
exit 1 | ||
;; | ||
esac | ||
shift | ||
done | ||
|
||
if [[ -z $TAG ]]; then | ||
echo "Tag required using the --tag option. Exiting" | ||
exit 1 | ||
fi | ||
|
||
for year in 2016APV 2016 2017 2018 | ||
do | ||
# --sig-samples qqHH_CV_1_C2V_1_kl_2_HHbbVV --bg-keys "" --no-data \ | ||
python -u postprocessing.py --year $year --data-dir "$data_dir" --templates \ | ||
--no-lp-sf-all-years \ | ||
--bdt-preds-dir "$data_dir/24_03_07_new_samples_max_depth_5/inferences" \ | ||
--plot-dir "${MAIN_DIR}/plots/PostProcessing/$TAG" \ | ||
--template-dir "test_templates/$TAG$year" --no-do-jshifts --vbf | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/HHbbVV/postprocessing/templates/24Mar18LPSFCheck/cutflows/2016/pass_cutflow.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
,Pre-selection,LP SF,bbFatJetPt >= 300,VVFatJetPt >= 300,BDTScore >= 0.998,bbFatJetParticleNetMD_Txbb >= 0.9735,0 ≤ nGoodElectronsHbb < 0.9,0 ≤ nGoodMuonsHbb < 0.9 | ||
qqHH_CV_1_C2V_1_kl_2_HHbbVV,0.0173959132140592,0.0173959132140592,0.017299990201845,0.017214419089199705,0.00042044328198753,0.0002600195116698255,0.0002558856684327143,0.0002558856684327143 |
2 changes: 2 additions & 0 deletions
2
src/HHbbVV/postprocessing/templates/24Mar18LPSFCheck/cutflows/2016APV/pass_cutflow.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
,Pre-selection,LP SF,bbFatJetPt >= 300,VVFatJetPt >= 300,BDTScore >= 0.998,bbFatJetParticleNetMD_Txbb >= 0.9737,0 ≤ nGoodElectronsHbb < 0.9,0 ≤ nGoodMuonsHbb < 0.9 | ||
qqHH_CV_1_C2V_1_kl_2_HHbbVV,0.021501518954477026,0.021501518954477026,0.021387774292197015,0.02128691499756289,0.0005347383241229343,0.0003420753830479197,0.0003420753830479197,0.0003420753830479197 |
2 changes: 2 additions & 0 deletions
2
src/HHbbVV/postprocessing/templates/24Mar18LPSFCheck/cutflows/2017/pass_cutflow.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
,Pre-selection,LP SF,bbFatJetPt >= 300,VVFatJetPt >= 300,BDTScore >= 0.998,bbFatJetParticleNetMD_Txbb >= 0.9714,0 ≤ nGoodElectronsHbb < 0.9,0 ≤ nGoodMuonsHbb < 0.9 | ||
qqHH_CV_1_C2V_1_kl_2_HHbbVV,0.03499528349928152,0.03499528349928152,0.034883938631222695,0.034828787476897716,0.0011217067019144162,0.0007799503782162023,0.0007798089829283552,0.0007711790124800327 |
2 changes: 2 additions & 0 deletions
2
src/HHbbVV/postprocessing/templates/24Mar18LPSFCheck/cutflows/2018/pass_cutflow.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
,Pre-selection,LP SF,bbFatJetPt >= 300,VVFatJetPt >= 300,BDTScore >= 0.998,bbFatJetParticleNetMD_Txbb >= 0.9734,0 ≤ nGoodElectronsHbb < 0.9,0 ≤ nGoodMuonsHbb < 0.9 | ||
qqHH_CV_1_C2V_1_kl_2_HHbbVV,0.04105557177629756,0.04105557177629756,0.04090476204464955,0.0407915993104881,0.0015553429231248339,0.0011102815028561314,0.0011071970472941277,0.0011060993774949018 |
2 changes: 2 additions & 0 deletions
2
src/HHbbVV/postprocessing/templates/24Mar18LPSFCheck/lpsfs.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
,SF,sj_matching_unc,sj_pt_unc,stat_unc,syst_unc | ||
qqHH_CV_1_C2V_1_kl_2_HHbbVV,0.86 ± 0.59,0.14285714285714285,0.010252321392099382,0.12946452895544497,0.6522582240401613 |
1 change: 1 addition & 0 deletions
1
src/HHbbVV/postprocessing/templates/24Mar18LPSFCheck/systematics.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"2016APV": {}, "qqHH_CV_1_C2V_1_kl_2_HHbbVV": {"lp_sf": 0.8604309258381978, "lp_sf_unc": 0.6802316726269908, "lp_sf_uncs": {"syst_unc": 0.6522582240401613, "stat_unc": 0.12946452895544497, "sj_pt_unc": 0.010252321392099382, "sj_matching_unc": 0.14285714285714285}}} |
2 changes: 2 additions & 0 deletions
2
src/HHbbVV/postprocessing/test_templates/24Mar18LPSFCheck2016/cutflows/2016/pass_cutflow.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
,Pre-selection,LP SF,bbFatJetPt >= 300,VVFatJetPt >= 300,BDTScore >= 0.998,bbFatJetParticleNetMD_Txbb >= 0.9735,0 ≤ nGoodElectronsHbb < 0.9,0 ≤ nGoodMuonsHbb < 0.9 | ||
qqHH_CV_1_C2V_1_kl_2_HHbbVV,0.0173959132140592,0.0173959132140592,0.017299990201845,0.017214419089199705,0.00042044328198753,0.0002600195116698255,0.0002558856684327143,0.0002558856684327143 |
2 changes: 2 additions & 0 deletions
2
src/HHbbVV/postprocessing/test_templates/24Mar18LPSFCheck2016/lpsfs.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
,SF,sj_matching_unc,sj_pt_unc,stat_unc,syst_unc | ||
qqHH_CV_1_C2V_1_kl_2_HHbbVV,1.24 ± 0.67,0.1399108138238573,0.008987658498025358,0.1001598592479952,0.5155430106030157 |
1 change: 1 addition & 0 deletions
1
src/HHbbVV/postprocessing/test_templates/24Mar18LPSFCheck2016/systematics.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"2016": {}, "qqHH_CV_1_C2V_1_kl_2_HHbbVV": {"lp_sf": 1.2411820701630025, "lp_sf_unc": 0.5435737365034577, "lp_sf_uncs": {"syst_unc": 0.5155430106030157, "stat_unc": 0.1001598592479952, "sj_pt_unc": 0.008987658498025358, "sj_matching_unc": 0.1399108138238573}}} |
2 changes: 2 additions & 0 deletions
2
...V/postprocessing/test_templates/24Mar18LPSFCheck2016APV/cutflows/2016APV/pass_cutflow.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
,Pre-selection,LP SF,bbFatJetPt >= 300,VVFatJetPt >= 300,BDTScore >= 0.998,bbFatJetParticleNetMD_Txbb >= 0.9737,0 ≤ nGoodElectronsHbb < 0.9,0 ≤ nGoodMuonsHbb < 0.9 | ||
qqHH_CV_1_C2V_1_kl_2_HHbbVV,0.021501518954477026,0.021501518954477026,0.021387774292197015,0.02128691499756289,0.0005347383241229343,0.0003420753830479197,0.0003420753830479197,0.0003420753830479197 |
2 changes: 2 additions & 0 deletions
2
src/HHbbVV/postprocessing/test_templates/24Mar18LPSFCheck2016APV/lpsfs.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
,SF,sj_matching_unc,sj_pt_unc,stat_unc,syst_unc | ||
qqHH_CV_1_C2V_1_kl_2_HHbbVV,0.86 ± 0.59,0.14285714285714285,0.010252321392099382,0.12946452895544497,0.6522582240401613 |
1 change: 1 addition & 0 deletions
1
src/HHbbVV/postprocessing/test_templates/24Mar18LPSFCheck2016APV/systematics.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"2016APV": {}, "qqHH_CV_1_C2V_1_kl_2_HHbbVV": {"lp_sf": 0.8604309258381978, "lp_sf_unc": 0.6802316726269908, "lp_sf_uncs": {"syst_unc": 0.6522582240401613, "stat_unc": 0.12946452895544497, "sj_pt_unc": 0.010252321392099382, "sj_matching_unc": 0.14285714285714285}}} |
2 changes: 2 additions & 0 deletions
2
src/HHbbVV/postprocessing/test_templates/24Mar18LPSFCheck2017/cutflows/2017/pass_cutflow.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
,Pre-selection,LP SF,bbFatJetPt >= 300,VVFatJetPt >= 300,BDTScore >= 0.998,bbFatJetParticleNetMD_Txbb >= 0.9714,0 ≤ nGoodElectronsHbb < 0.9,0 ≤ nGoodMuonsHbb < 0.9 | ||
qqHH_CV_1_C2V_1_kl_2_HHbbVV,0.03499528349928152,0.03499528349928152,0.034883938631222695,0.034828787476897716,0.0011217067019144162,0.0007799503782162023,0.0007798089829283552,0.0007711790124800327 |
2 changes: 2 additions & 0 deletions
2
src/HHbbVV/postprocessing/test_templates/24Mar18LPSFCheck2017/lpsfs.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
,SF,sj_matching_unc,sj_pt_unc,stat_unc,syst_unc | ||
qqHH_CV_1_C2V_1_kl_2_HHbbVV,1.13 ± 0.57,0.12784248474764282,0.007395479581722196,0.06913171449227407,0.48201850196491147 |
1 change: 1 addition & 0 deletions
1
src/HHbbVV/postprocessing/test_templates/24Mar18LPSFCheck2017/systematics.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"2017": {}, "qqHH_CV_1_C2V_1_kl_2_HHbbVV": {"lp_sf": 1.1269971767791451, "lp_sf_unc": 0.5035071242890548, "lp_sf_uncs": {"syst_unc": 0.48201850196491147, "stat_unc": 0.06913171449227407, "sj_pt_unc": 0.007395479581722196, "sj_matching_unc": 0.12784248474764282}}} |
2 changes: 2 additions & 0 deletions
2
src/HHbbVV/postprocessing/test_templates/24Mar18LPSFCheck2018/cutflows/2018/pass_cutflow.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
,Pre-selection,LP SF,bbFatJetPt >= 300,VVFatJetPt >= 300,BDTScore >= 0.998,bbFatJetParticleNetMD_Txbb >= 0.9734,0 ≤ nGoodElectronsHbb < 0.9,0 ≤ nGoodMuonsHbb < 0.9 | ||
qqHH_CV_1_C2V_1_kl_2_HHbbVV,0.04105557177629756,0.04105557177629756,0.04090476204464955,0.0407915993104881,0.0015553429231248339,0.0011102815028561314,0.0011071970472941277,0.0011060993774949018 |
2 changes: 2 additions & 0 deletions
2
src/HHbbVV/postprocessing/test_templates/24Mar18LPSFCheck2018/lpsfs.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
,SF,sj_matching_unc,sj_pt_unc,stat_unc,syst_unc | ||
qqHH_CV_1_C2V_1_kl_2_HHbbVV,1.11 ± 0.64,0.11687725631768953,0.004125334945509687,0.07621464039715414,0.5657408058437927 |
1 change: 1 addition & 0 deletions
1
src/HHbbVV/postprocessing/test_templates/24Mar18LPSFCheck2018/systematics.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"2018": {}, "qqHH_CV_1_C2V_1_kl_2_HHbbVV": {"lp_sf": 1.1068573499629724, "lp_sf_unc": 0.5827080248635804, "lp_sf_uncs": {"syst_unc": 0.5657408058437927, "stat_unc": 0.07621464039715414, "sj_pt_unc": 0.004125334945509687, "sj_matching_unc": 0.11687725631768953}}} |
Oops, something went wrong.