Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
rkansal47 committed Feb 26, 2024
2 parents f707986 + 4100402 commit ce431d4
Show file tree
Hide file tree
Showing 182 changed files with 26,798 additions and 6,389 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Pre-commit updates auto-merge
on: pull_request

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if:
${{ github.event_name == 'pull_request' &&
github.event.pull_request.user.login == 'pre-commit-ci[bot]'}}
steps:
- name: Auto-merge PR
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
!*.ipynb
!figure.png
!requirements.txt
!environment.yml

!src
src/*
Expand Down Expand Up @@ -33,9 +34,9 @@ src/*
!src/HHbbVV/postprocessing/**
src/HHbbVV/postprocessing/data/*
src/HHbbVV/postprocessing/*.pkl
src/HHbbVV/postprocessing/*.txt
src/HHbbVV/postprocessing/cards
src/HHbbVV/postprocessing/templates_old
src/HHbbVV/postprocessing/*.txt
src/HHbbVV/postprocessing/condor_templates
src/HHbbVV/postprocessing/outs

Expand All @@ -54,13 +55,21 @@ src/HHbbVV/postprocessing/outs
!src/HHbbVV/tagger
!src/HHbbVV/tagger/**

!src/HHbbVV/VBF_binder
!src/HHbbVV/VBF_binder/**

!src/HHbbVV/bash
!src/HHbbVV/bash/**

!data
!data/*
!data/*/**

!paper
!paper/**

!inference_scans
!inference_scans/**

!.gitignore
!.github
Expand All @@ -77,3 +86,4 @@ src/HHbbVV/postprocessing/outs
**/__pycache__
**/.DS_Store
.DS_Store
tau_check.ipynb
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: "23.3.0"
- repo: https://github.com/psf/black-pre-commit-mirror
rev: "24.2.0"
hooks:
- id: black-jupyter
args: [--line-length=100]
30 changes: 18 additions & 12 deletions AnalysisPlan.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
- [Statistical tests of fits](#statistical-tests-of-fits)
- [Resonant X-\>HY](#resonant-x-hy)
- [Semi-leptonic ttbar selection skimmer](#semi-leptonic-ttbar-selection-skimmer)
- [Resolved WW veto](#resolved-ww-veto)
- [TTbar corrections](#ttbar-corrections)
- [Samplers](#samplers)
- [Plan](#plan)
- [Feb 13 - 17](#feb-13---17)
- [Feb 20 - 24](#feb-20---24)
Expand Down Expand Up @@ -87,7 +87,12 @@
- [x] JMS/R
- [ ] Top pT
- Theory
- [x] pdf uncertainties
- [x] BR
- [ ] pdf uncertainties
- [x] rate
- [ ] shape?
- [x] QCD scale
- [ ] alpha_s (for single Higgs)
- [x] parton shower weights
- [ ] scale variation?
- [ ] W k factor??
Expand All @@ -109,16 +114,16 @@

### Nonresonant

- [ ] BDT ROC
- [x] BDT ROC
- [x] Try multi-class BDT
- [x] Try equalizing background weights
- [x] Optimize hyperparams
- [x] Trim features
- [ ] Compare to cut-based WP
- [ ] Check sculpting
- [x] Check sculpting
- [x] Scan Txbb, BDT WPs
- [ ] Run over all kL and k_2V
- [ ] Re-run VBF with gen selection
- [x] Run over all kL and k_2V
- [x] Re-run VBF with gen selection
- [x] HH inference
- [ ] Theory uncertainties


Expand Down Expand Up @@ -151,6 +156,12 @@
- [x] muon ID SFs
- [x] Save regressed mass
- [x] Jet ID SFs (not required) https://twiki.cern.ch/twiki/bin/view/CMS/JetID13TeVUL
- [ ] PFNano on SingleMuon to get regressed mass


### Resolved WW veto

- [ ] Test veto on 2 AK8 W-tagged jets


### TTbar corrections
Expand All @@ -165,11 +176,6 @@ May not be necessary given low yield
- Check VBF?


### Samplers

- [ ] Verify sample distributions


## Plan


Expand Down
13 changes: 3 additions & 10 deletions PrintParquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,9 @@
@click.argument("filename")
@click.option("-b", "--branches", multiple=True, default=[])
def print_parquet(filename, branches):
# At least one jet with Txbb > 0.8
filters = [
[
("('ak8FatJetParticleNetMD_Txbb', '0')", ">=", 0.8),
],
[
("('ak8FatJetParticleNetMD_Txbb', '1')", ">=", 0.8),
],
]
events = pd.read_parquet(filename, filters=filters)
events = pd.read_parquet(filename)
print(events)
print("columns")
print(events.columns.to_numpy())
if len(branches) > 0:
for b in branches:
Expand Down
Loading

0 comments on commit ce431d4

Please sign in to comment.