Skip to content

Commit 3b588ad

Browse files
committed
up
1 parent 151e0c8 commit 3b588ad

16 files changed

+197
-2946
lines changed

ParT_Finetuned/v35_30/model.onnx

2.28 KB
Binary file not shown.

binder/combine.ipynb

Lines changed: 81 additions & 1687 deletions
Large diffs are not rendered by default.

binder/cutflows_Oct10.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@
281281
" \"2016\": \"../eos/hww/Dec20_hww_2016\",\n",
282282
" \"2016APV\": \"../eos/hww/Dec20_hww_2016APV\", \n",
283283
" \"2017\": \"../eos/hww/Dec20_hww_2017\",\n",
284-
"# \"2017\": \"../eos/hww/Jun5_hww_2017\", \n",
284+
"# \"2017\": \"../eos/hww/Jun5_hww_2017\",\n",
285285
" \"2018\": \"../eos/hww/Dec20_hww_2018\", \n",
286286
"}"
287287
]

binder/hists_plots.ipynb

Lines changed: 31 additions & 145 deletions
Large diffs are not rendered by default.

combine/make_templates.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@
2626
pd.set_option("mode.chained_assignment", None)
2727

2828

29-
with open("./trg_eff_SF_ARC.pkl", "rb") as f:
30-
TRIGGER_SF = pkl.load(f)
31-
3229
THWW_SF = {
3330
"ggF": 0.948,
3431
"VBF": 0.984,
@@ -37,6 +34,9 @@
3734
ptbinning_trgSF = [2000, 200, 170, 150, 130, 110, 90, 70, 50, 30]
3835
etabinning_trgSF = [-2.5, -1.5, -0.5, 0.5, 1.5, 2.5]
3936

37+
with open("./trg_eff_SF_ARC.pkl", "rb") as f:
38+
TRIGGER_SF = pkl.load(f)
39+
4040

4141
def get_nominal(df, year, ch, sample_label, region, region_sel, xsecweight, is_data):
4242
"""Compute the nominal event weight."""

python/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@ We build stacked histograms after processing first the parquets into an `events_
44

55
To make the `events_dict` object, run the command `python make_stacked_hists.py --make-events-dict` but make sure to first edit the `config_make_events_dict.yaml`.
66

7-
To plot the stacked histograms after building the `events_dict` object, run the command `python make_stacked_hists.py --plot-stacked-hists` but make sure to first edit the `config_plot_stacked_hists.yaml`.
7+
To plot the stacked histograms after building the `events_dict` object, run the command `python make_stacked_hists.py --plot-stacked-hists` but make sure to first edit the `config_plot_stacked_hists.yaml`.
8+
9+
# Making cutflow tables
10+
11+
To print LaTeX cutflow table, run `python make_cutflow_table.py --years 2017 --channels ele,mu --add-cuts` but make sure to first edit the `config_make_cutflow_table.yaml`.
12+
13+
The option `--add-cuts` allows you to include additional cuts that you define in the config file.

python/config_make_cutflow_table.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
samples_dir:
2-
"2018": ../eos/July18_hww_2018
3-
"2017": ../eos/July18_hww_2017
4-
"2016": ../eos/July18_hww_2016
5-
"2016APV": ../eos/July18_hww_2016APV
2+
"2018": ../eos/hww/Dec20_hww_2018
3+
"2017": ../eos/hww/Dec20_hww_2017
4+
"2016": ../eos/hww/Dec20_hww_2016
5+
"2016APV": ../eos/hww/Dec20_hww_2016APV
66

77
samples:
88
- ggF
@@ -28,4 +28,4 @@ add_cuts:
2828
add_data: True
2929
add_sumgenweight: True
3030

31-
THWW_path: ../../weaver-core-dev/experiments_finetuning/v35_30/model.onnx
31+
THWW_path: ../ParT_Finetuned/v35_30/model.onnx

python/config_make_events_dict.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
samples_dir:
2-
"2018": ../eos/July18_hww_2018
3-
"2017": ../eos/July18_hww_2017
4-
"2016": ../eos/July18_hww_2016
5-
"2016APV": ../eos/July18_hww_2016APV
2+
"2018": ../eos/hww/Dec20_hww_2018
3+
"2017": ../eos/hww/Dec20_hww_2017
4+
"2016": ../eos/hww/Dec20_hww_2016
5+
"2016APV": ../eos/hww/Dec20_hww_2016APV
66

77
years:
88
- "2018"
@@ -17,10 +17,10 @@ channels:
1717
presel:
1818
ele:
1919
msoftdrop: (fj_mass>40)
20-
# THWW: (THWW>0.75)
20+
THWW: (THWW>0.75)
2121
mu:
2222
msoftdrop: (fj_mass>40)
23-
# THWW: (THWW>0.75)
23+
THWW: (THWW>0.75)
2424

2525
samples:
2626
- ggF
@@ -39,6 +39,6 @@ samples:
3939
- WJetsLNu
4040
- Data
4141

42-
THWW_path: ../../weaver-core-dev/experiments_finetuning/v35_30/model.onnx
42+
THWW_path: ../ParT_Finetuned/v35_30/model.onnx
4343

44-
outdir: "hists/v1/"
44+
outdir: "hists/v2/"

0 commit comments

Comments
 (0)