Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common boostedhh repo #231

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "boostedhh"]
path = boostedhh
url = https://github.com/LPC-HH/boostedhh
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ four beauty quarks (b).
- [Jobs](#jobs)
- [Dask](#dask)
- [Postprocessing](#postprocessing)
- [Setup](#setup-1)
- [BDT Training](#bdt-training)
- [Creating templates / FOM Scan / BDT ROC curve](#creating-templates--fom-scan--bdt-roc-curve)
- [Condor Scripts](#condor-scripts)
- [Check jobs](#check-jobs)
- [Combine pickles](#combine-pickles)
Expand Down Expand Up @@ -74,7 +71,7 @@ micromamba activate hh4b

```bash
# Clone the repository
git clone https://github.com/LPC-HH/HH4b.git
git clone -r https://github.com/LPC-HH/HH4b.git
cd HH4b
# Perform an editable installation
pip install -e .
Expand All @@ -83,6 +80,10 @@ pip install pre-commit
pre-commit install
# install requirements
pip3 install -r requirements.txt
# install common boostedhh library
cd boostedhh
pip install -e .
cd ..
```

### Troubleshooting
Expand Down
1 change: 1 addition & 0 deletions boostedhh
Submodule boostedhh added at 74808d
97 changes: 0 additions & 97 deletions src/HH4b/processors/SkimmerABC.py

This file was deleted.

24 changes: 15 additions & 9 deletions src/HH4b/processors/bbbbSkimmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,8 @@
import pandas as pd
import vector
import xgboost as xgb
from coffea import processor
from coffea.analysis_tools import PackedSelection, Weights

import HH4b

from . import objects, utils
from .corrections import (
from boostedhh.processors import SkimmerABC, utils
from boostedhh.processors.corrections import (
JECs,
add_pileup_weight,
add_ps_weight,
Expand All @@ -31,6 +26,19 @@
get_pdf_weights,
get_scale_weights,
)
from boostedhh.processors.utils import (
P4,
PAD_VAL,
add_selection,
get_var_mapping,
pad_val,
)
from coffea import processor
from coffea.analysis_tools import PackedSelection, Weights

import HH4b

from . import objects
from .GenSelection import (
gen_selection_Hbb,
gen_selection_HHbbbb,
Expand All @@ -46,8 +54,6 @@
veto_electrons,
veto_muons,
)
from .SkimmerABC import SkimmerABC
from .utils import P4, PAD_VAL, add_selection, get_var_mapping, pad_val

# mapping samples to the appropriate function for doing gen-level selections
gen_selection_dict = {
Expand Down
Loading
Loading