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

Refactored tools #64

Merged
merged 156 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
156 commits
Select commit Hold shift + click to select a range
070355b
[cache_objects.py] Add status == 2 check on visible had taus
bonanomi Jun 29, 2023
015c320
Merge branch 'cms-l1-dpg:main' into main
bonanomi Jul 31, 2023
6c11b52
[Rates] Start development on rates table
bonanomi Aug 1, 2023
b58797f
[Rates] Improvements and cleanup. Move to a single config
bonanomi Aug 1, 2023
ded3cd2
Clean up the code. Improve actions in config. Remove util functions f…
bonanomi Aug 2, 2023
c9df08b
Cleaned up config for v29_WITHMUONS menu
bonanomi Aug 2, 2023
645265b
[v29_16Seeds] Scalings and minor modifications for full synch on v29_…
bonanomi Aug 7, 2023
41a1be1
Add README
bonanomi Aug 7, 2023
dfeec58
Move old menu tool to separate folder
artlbv Aug 8, 2023
e6c1871
Add loading math package
artlbv Aug 8, 2023
3db4eab
Fix scalings for caloTau and sc jets
artlbv Aug 8, 2023
14508a4
Add pyc files to git ignore
artlbv Aug 8, 2023
c8d3898
Change >= to > in Tau seeds in v29 config
artlbv Aug 8, 2023
031d667
Removing skipping Tau seeds
artlbv Aug 8, 2023
1e3abf5
Add full menu and 16seed menu v29 steering file
artlbv Aug 8, 2023
9e95004
Fix MHT scalings
artlbv Aug 8, 2023
35a0829
Remove unused doublemu seed
artlbv Aug 8, 2023
d407e80
Remove colon from old fwk printout
artlbv Aug 8, 2023
4a10178
Introduce tkIsoEle fix and fix scalings and menu
artlbv Aug 8, 2023
43a655b
Add dump of masks
artlbv Aug 8, 2023
acc07d1
Fix seed threshold
artlbv Aug 8, 2023
b0c0451
Merge branch 'main' into new_rate_fwk
bonanomi Aug 9, 2023
4b721d6
Merge pull request #1 from artlbv/new_rate_fwk
bonanomi Aug 9, 2023
31b470d
Merge pull request #45 from bonanomi/main
artlbv Oct 12, 2023
80117cb
move everything from objectPerformance
danielhundhausen Jan 15, 2024
514558a
fix caching after move to menu_tools submodule
danielhundhausen Jan 15, 2024
ce5332f
fix object performance plotting after move to menu_tools submodule
danielhundhausen Jan 15, 2024
adc2df3
move caching yamls to dir where version dir is on higher level
danielhundhausen Jan 15, 2024
2616300
move object performance yamls to dir where version dir is on higher l…
danielhundhausen Jan 15, 2024
dbc97b7
add explicit commands for venv setup to README.md
danielhundhausen Jan 16, 2024
c5b64d3
update dead link to Wiki
danielhundhausen Jan 16, 2024
f640cd0
move installation requirements to pyproject.toml using poetry and rem…
danielhundhausen Jan 16, 2024
90de61c
add missing fsspec dependency of awkward
danielhundhausen Jan 16, 2024
bb6d9aa
Merge pull request #48 from danielhundhausen/dev_restructure_objPerfo…
danielhundhausen Jan 17, 2024
36b3d54
Fix CI and add basic code quality functionality (#53)
danielhundhausen Jan 17, 2024
5e1cb0b
add working version of objects class utility and electron configuration
danielhundhausen Jan 17, 2024
8b500e4
develop objects
danielhundhausen Jan 17, 2024
f76232f
fix jets_matching plots; remove old versions
danielhundhausen Jan 17, 2024
73b9f29
edit jets trigger config to fit new object style
danielhundhausen Jan 17, 2024
f464ac4
fix code quality issues
danielhundhausen Jan 17, 2024
609a661
remove from object config and put it back into plot configuration
danielhundhausen Jan 22, 2024
1d22ebc
Merge pull request #52 from cms-l1-dpg/new_rate_fwk
danielhundhausen Jan 22, 2024
dd8b511
fix instructions wrongly referring to requirements.txt
danielhundhausen Jan 22, 2024
8ddbd0c
fix electron isolation plots
danielhundhausen Jan 22, 2024
9d628c8
[rates] Validation with ak2. Remove shebangs
Jan 22, 2024
e895b37
Fix typo and add venv to gitignore
Jan 22, 2024
edcd693
update ele matching eta plots to use central objects; bugfix
danielhundhausen Jan 22, 2024
417df36
update remaining electron obj perf configs to use central objects; ad…
danielhundhausen Jan 22, 2024
358bb39
add name of plot that is misconfigured to exception messages in plot …
danielhundhausen Jan 22, 2024
d3f8946
fixes; more config parsing; jet config adaptation
danielhundhausen Jan 22, 2024
8940321
write jet and met/mht configs to use central objects
danielhundhausen Jan 22, 2024
c200899
fix sample configuration in jet_matching V29
danielhundhausen Jan 22, 2024
2853202
fix mht plots by converting to Mementum4D after cutting
danielhundhausen Jan 22, 2024
b9d2f14
configure muon matching with central obj definitions
danielhundhausen Jan 22, 2024
78c2163
finish re-configuration of muons with central objects
danielhundhausen Jan 22, 2024
68ffbe5
reconfigure photon iso reproducing iso plots
danielhundhausen Jan 22, 2024
ea09f82
continue photon configuration
danielhundhausen Jan 22, 2024
b5750d8
reconfigure photon matching with central objects
danielhundhausen Jan 22, 2024
0546a05
reconfigure photon trigger plots with central objects
danielhundhausen Jan 22, 2024
3c9f5b1
Fix range nameing convention in electron objects and implement phton …
danielhundhausen Jan 22, 2024
46ebe5f
reconfigure tau machting wHH with central tau objects
danielhundhausen Jan 22, 2024
16563cc
finish taus
danielhundhausen Jan 22, 2024
5260a71
add poetry.lock files as recommended by poetry docs
danielhundhausen Jan 22, 2024
e245145
fix suffix of config dump that lead to overwriting plot jsons
danielhundhausen Jan 23, 2024
128237e
enable wildcard for object performance plotting solving #47
danielhundhausen Jan 23, 2024
4a52791
fix isoloation electron plots
danielhundhausen Jan 23, 2024
28d8a6c
fixes in electrons config
danielhundhausen Jan 23, 2024
e8fc897
copy rate plot code and config from
danielhundhausen Jan 23, 2024
55b5816
many fixes for rate plots; remove object.name in favor of overwriting…
danielhundhausen Jan 23, 2024
1b62ef2
add test to reproduce electron iso @ V29
danielhundhausen Jan 23, 2024
e07f6d8
fix code quality stuff
danielhundhausen Jan 23, 2024
abaf2b2
fix .name references on Object
danielhundhausen Jan 23, 2024
3305a64
Merge branch 'dev_rate_plots_with_central_objects' into dev_objects
danielhundhausen Jan 23, 2024
cbbd909
[v29 rates] Update config to use explicit definition of pairinvmass
Jan 24, 2024
f271ec3
abstract baseconfig
danielhundhausen Jan 24, 2024
42d07d6
[v29 rates] Add mass dimension and call mass in config
Jan 24, 2024
a38dc19
Fix ID in tkIsoElectron
danielhundhausen Jan 24, 2024
ead897f
fix scalings
danielhundhausen Jan 24, 2024
e111430
add missing base config to version control
danielhundhausen Jan 24, 2024
20a0c6b
Merge remote-tracking branch 'upstream/refactored_tools' into dev_obj…
danielhundhausen Jan 24, 2024
c2ee2a1
implemnt dumping of scaling function parameters in yaml format readab…
danielhundhausen Jan 24, 2024
b44bc34
[v29 rates] Fix typo in v29 table config
Jan 25, 2024
dbf3285
fix dumping of scalings
danielhundhausen Jan 26, 2024
3217584
fix version in config for rate plots
danielhundhausen Jan 26, 2024
61347e3
add more rate plots
danielhundhausen Jan 26, 2024
3bcbc19
Add online/offline to printout in rate plotting
danielhundhausen Jan 26, 2024
63985fd
code formatting
danielhundhausen Jan 26, 2024
eb02720
fix code quality issues
danielhundhausen Jan 26, 2024
8b1da35
Refactor Object constructor and include eta_range as obj_key postfix
danielhundhausen Jan 29, 2024
86232c2
add cut specified by :eta_region in obj key to object cuts
danielhundhausen Jan 29, 2024
c1dbeb3
change naming of ranges and fix previous commit
danielhundhausen Jan 29, 2024
08287a9
fix scalings plot label
danielhundhausen Jan 29, 2024
38f5aa2
remove unused function
danielhundhausen Jan 29, 2024
193e5a1
finish untested integration of eta dependent scalings and rate plots
danielhundhausen Jan 29, 2024
c226959
Merge pull request #55 from cms-l1-dpg/dev_mass
artlbv Jan 30, 2024
a89f9f9
fix bug in logic of added cut on :region in Object class
danielhundhausen Jan 30, 2024
54ea485
fix bug in plotter
danielhundhausen Jan 30, 2024
9d47a25
add eta ranges to jet objects for scaling application
danielhundhausen Jan 30, 2024
f37ed3a
add cut on L1 eta for scaling derivation for jets
danielhundhausen Jan 30, 2024
399c96d
fix HT plots and add tests
danielhundhausen Jan 30, 2024
cdd3b99
run black
danielhundhausen Jan 30, 2024
956aa69
Merge pull request #16 from danielhundhausen/fix_ht
danielhundhausen Jan 30, 2024
855d787
add L1 cuts to all V29 trigger configs
danielhundhausen Jan 30, 2024
fc6165e
fix syntax error
danielhundhausen Jan 30, 2024
e3f0f84
add development documentation
danielhundhausen Jan 30, 2024
3bc4686
fix reworked ids in muon matching config
danielhundhausen Jan 30, 2024
cc55dd2
make error message for when range key not found more helpful
danielhundhausen Jan 30, 2024
c49b978
synchronize eg nameing of endcap eta region
danielhundhausen Jan 30, 2024
c9b3b6b
small fix to not skip all plots when scalings are missing for one obj…
danielhundhausen Jan 30, 2024
5329918
some minor fixes
danielhundhausen Jan 30, 2024
643b65e
introduce CLI shortcuts for running and
danielhundhausen Jan 31, 2024
cf650b2
Fix V29 gmtTkMuon definition: no quality < 8 GeV
danielhundhausen Jan 31, 2024
62628ec
Fix the inclusive ranges and cuts in the v29 objects
danielhundhausen Jan 31, 2024
5c0955d
fix bug where slope and offset were swapped
danielhundhausen Jan 31, 2024
adde35e
fix edgecase where phi could be 0
danielhundhausen Jan 31, 2024
94015e4
clean up rate plot conifg for V29
danielhundhausen Jan 31, 2024
7f088f7
remove debugging printouts
danielhundhausen Jan 31, 2024
1d6ff55
fix entryopnits for cli interface
danielhundhausen Jan 31, 2024
c317edb
clean up rate config
danielhundhausen Jan 31, 2024
8a87145
fix bug where selection did not work for objects without phi field
danielhundhausen Jan 31, 2024
81a9784
add ht to rate plot config
danielhundhausen Jan 31, 2024
98472c0
replace progress with tqdm
danielhundhausen Jan 31, 2024
ca4084a
add shortcut entry point
danielhundhausen Feb 1, 2024
a239f32
add json dump for rate plotter
artlbv Jan 31, 2024
0a50812
make rate computer more efficient by avoiding looping over thresholds…
artlbv Feb 1, 2024
2bbef70
remove EG eleID
artlbv Feb 1, 2024
acf95cf
fix Muon quality ID
artlbv Feb 1, 2024
2454228
restrict tkPhoton eta to 2.4
artlbv Feb 1, 2024
2248130
remove non-existant HT branch from caching config
danielhundhausen Feb 2, 2024
8c11d3a
update documentation
danielhundhausen Feb 2, 2024
f7a8a94
Merge pull request #17 from artlbv/dev_objects_artur
danielhundhausen Feb 5, 2024
c833a7f
add seededConePuppiHT to rate plot
danielhundhausen Feb 2, 2024
8719d26
make nicer progress bar
danielhundhausen Feb 5, 2024
655dc56
merge
danielhundhausen Feb 5, 2024
f2b09ca
remove unused import; reforamt; fix type hint
danielhundhausen Feb 5, 2024
38ec098
fix HT (event level) rate plots
danielhundhausen Feb 5, 2024
a6a90b1
add dump of rate plot config
danielhundhausen Feb 5, 2024
df4a5e0
add test to rate plots
danielhundhausen Feb 5, 2024
00d6811
Merge pull request #56 from danielhundhausen/dev_objects
danielhundhausen Feb 5, 2024
b2e2465
add build artifacts to gitignore
danielhundhausen Feb 5, 2024
4251dcd
Fix Tau NNID
artlbv Feb 5, 2024
0aab1bb
Merge pull request #57 from artlbv/dev_objects_artur
artlbv Feb 5, 2024
c6ab90f
change path of scaling files in rate plots
danielhundhausen Feb 12, 2024
93b4063
change output dir structure
danielhundhausen Feb 12, 2024
a863f59
improve V29 rate plots config
danielhundhausen Feb 12, 2024
b0b6566
adapt test
danielhundhausen Feb 12, 2024
a80e5bc
work on rate plots
danielhundhausen Feb 14, 2024
da93e02
Merge pull request #60 from danielhundhausen/dev_output_hirarchy
artlbv Feb 16, 2024
5fd2d2b
add gmtMuon quality cut in overlap region
danielhundhausen Feb 16, 2024
8b60bcf
Merge pull request #61 from danielhundhausen/validation_fixes
artlbv Feb 21, 2024
b047bea
add dpg_trigger/.../cache as symlink to repo
danielhundhausen Feb 21, 2024
9a50326
remove quality cut <25GeV for tkElectrons
danielhundhausen Feb 21, 2024
236b4a8
add NoIsoLowPt id for tkElectron
danielhundhausen Feb 26, 2024
862382e
remove xerr from efficiency plots
danielhundhausen Feb 26, 2024
d495a14
create warning when scalings already exist and dump to different file…
danielhundhausen Feb 26, 2024
07ce06d
Merge pull request #63 from danielhundhausen/validation_fixes
danielhundhausen Feb 26, 2024
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
4 changes: 3 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[flake8]
ignore = W391, W503
max-line-length = 79
max-line-length = 88
extend-ignore = E203, E704, E266
exclude = menu_tools/object_performance/quality_obj.py,menu_tools/**/test_*.py
25 changes: 0 additions & 25 deletions .github/workflows/action.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Code quality
on: [push, pull_request, workflow_dispatch]

jobs:
black-lint:
runs-on: ubuntu-latest
name: black
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "./menu_tools"
version: "~= 23.12"
flake8-lint:
runs-on: ubuntu-latest
name: flake8
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: flake8 Lint
uses: py-actions/flake8@v2
with:
path: "./menu_tools"
mypy-type-check:
runs-on: ubuntu-latest
name: mypy
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
architecture: 'x64'
- run: |
python -m pip install --upgrade pip poetry
poetry install
poetry run mypy
11 changes: 8 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
**/__pycache__/*
*.pyc
pyenv/*
**/*.png
**/*.pdf
**/.DS_Store
**/*.parquet
**/rates.py
objectPerformance/**/*.root
objectPerformance/outputs/**/*
**/*.root
rates/table/out/*
rates/table/cache/**/*
rates/table/lib/*
rates/table/rates_tables/*
**/tmp/*
outputs
menu_tools.egg-info
dist
26 changes: 15 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,24 @@
Detailed instructions on how to run each step of the workflow are
provided in each folder.

## Setup of Python environment
**Note:** The code should run without any setup on `lxplus`.
## Setup

A standard venv with Python3.11 can be created on lxplus
via `python3.11 -m venv <name_of_venv>` and all necessary
dependencies installed via `pip install -r requirements.txt`.
dependencies installed via `pip install .`:

You can then execute the scripts either with `python <path_to_script>.py`
or by modifying the [shebang](https://en.wikipedia.org/wiki/Shebang_%28Unix%29).
(the very first line of the executable `.py` files which starts
with `#!`) to point
to your newly set up Python installation. To find the path run
```bash
python3.11 -m venv pyenv
source <name_of_venv>/bin/activate
pip install .
```

source <name_of_venv>/bin/activate
which python
**ATTENTION:** Whenever you pull changes you need to `pip install . --upgrade`

and replace the current path in the shebang with the output.
You can then execute the tools via

```python
cach_objects <path_to_config>
object_performance <path_to_config>
rate_plots <path_to_config>
```
1 change: 1 addition & 0 deletions cache
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ V29:
phase1PuppiHT: "all"
seededConePuppiJet: [Pt, Et, Eta, Phi]
seededConeExtendedPuppiJet: [Pt, Et, Eta, Phi, BJetNN]
seededConeExtendedPuppiHT: "all"
seededConePuppiHT: "all"
seededConePuppiMHT: "all"
tkElectron: [Pt, Et, Eta, Phi, Chg, Bx, TrkIso, PfIso, PuppiIso, zVtx, HwQual, HGC, PassesEleID, PassesPhoID]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
ElectronsIsolation_Barrel:
sample: DYLL_M50
default_version: V27
version: V29
match_test_to_ref: True
iso_vs_efficiency: True
reference_object:
object: "part_e"
suffix: "Pt"
x_arg: "Pt"
label: "Gen Electrons"
cuts:
event:
Expand All @@ -13,13 +14,7 @@ ElectronsIsolation_Barrel:
object:
- "abs({eta}) < 1.479"
test_objects:
tkElectron:
suffix: "trkiso"
label: "TkElectron"
match_dR: 0.15
cuts:
- "abs({eta}) < 2.4"
- "{passeseleid} == 1"
tkElectron:NoIso: "trkiso"
xlabel: "Isolation"
ylabel: "Efficiency (Barrel)"
binning:
Expand All @@ -29,11 +24,12 @@ ElectronsIsolation_Barrel:

ElectronsIsolation_Endcap:
sample: DYLL_M50
default_version: V27
version: V29
match_test_to_ref: True
iso_vs_efficiency: True
reference_object:
object: "part_e"
suffix: "Pt"
x_arg: "Pt"
label: "Gen Electrons"
cuts:
event:
Expand All @@ -42,13 +38,7 @@ ElectronsIsolation_Endcap:
object:
- "abs({eta}) < 2.4"
test_objects:
tkElectron:
suffix: "trkiso"
label: "TkElectron"
match_dR: 0.15
cuts:
- "abs({eta}) < 2.4"
#- "{passeseleid} == 1"
tkElectron:NoIsoForIso: "trkiso"
xlabel: "Isolation"
ylabel: "Efficiency (Endcap)"
binning:
Expand Down
51 changes: 51 additions & 0 deletions configs/V29/object_performance/electron_matching.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
ElectronsMatchingBarrel:
sample: DYLL_M50
version: V29
match_test_to_ref: True
reference_object:
object: "part_e"
x_arg: "Pt"
label: "Gen Electrons"
cuts:
event:
- "{dr_0.3} < 0.15"
- "abs({eta}) < 1.5"
object:
- "abs({eta}) < 2.4"
test_objects:
EG:default: "Pt"
tkElectron:NoIso: "Pt"
tkElectron:NoIsoLowPt: "Pt"
tkElectron:Iso: "Pt"
xlabel: "Gen. $p_T$ (GeV)"
ylabel: "Matching Efficiency (Barrel)"
binning:
min: 0
max: 100
step: 3

ElectronsMatchingEndcap:
sample: DYLL_M50
version: V29
match_test_to_ref: True
reference_object:
object: "part_e"
x_arg: "Pt"
label: "Gen Electrons"
cuts:
event:
- "{dr_0.3} < 0.15"
- "abs({eta}) > 1.5"
object:
- "abs({eta}) < 2.4"
test_objects:
EG:default: "Pt"
tkElectron:NoIso: "Pt"
tkElectron:NoIsoLowPt: "Pt"
tkElectron:Iso: "Pt"
xlabel: "Gen. $p_T$ (GeV)"
ylabel: "Matching Efficiency (Endcap)"
binning:
min: 0
max: 100
step: 3
52 changes: 52 additions & 0 deletions configs/V29/object_performance/electron_matching_eta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
ElectronsMatching_Eta_Pt10to25:
sample: DYLL_M50
version: V29
match_test_to_ref: True
reference_object:
object: "part_e"
x_arg: "Eta"
label: "Gen Electrons"
cuts:
event:
- "{dr_0.3} < 0.15"
- "{pt} < 25"
- "{pt} > 10"
object:
- "abs({eta}) < 3.0"
test_objects:
EG:default: "Eta"
tkElectron:NoIso: "Eta"
tkElectron:NoIsoLowPt: "Eta"
tkElectron:Iso: "Eta"
xlabel: "Gen. $\\eta$"
ylabel: "Matching Efficiency ($10 < p_T < 25$ GeV)"
binning:
min: -3
max: 3
step: 0.2

ElectronsMatching_Eta_Pt25toInf:
sample: DYLL_M50
version: V29
match_test_to_ref: True
reference_object:
object: "part_e"
x_arg: "Eta"
label: "Gen Electrons"
cuts:
event:
- "{dr_0.3} < 0.15"
- "{pt} > 25"
object:
- "abs({eta}) < 3.0"
test_objects:
EG:default: "Eta"
tkElectron:NoIso: "Eta"
tkElectron:NoIsoLowPt: "Eta"
tkElectron:Iso: "Eta"
xlabel: "Gen. $\\eta$"
ylabel: "Matching Efficiency ($p_T > 25$ GeV)"
binning:
min: -3
max: 3
step: 0.2
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
ElectronsTriggerBarrel:
sample: Zee
default_version: V26
sample: DYLL_M50
version: V29
match_test_to_ref: True
reference_object:
object: "part_e"
suffix: "Pt"
x_arg: "Pt"
label: "Gen Electrons"
cuts:
event:
Expand All @@ -12,21 +13,10 @@ ElectronsTriggerBarrel:
object:
- "abs({eta}) < 2.8"
test_objects:
EG:
suffix: "Pt"
label: "EG Electron"
match_dR: 0.2
quality_id: "QUAL_125x_EGID"
cuts:
- "abs({eta}) < 2.8"
# - "{passeseleid} == 1"
tkElectron:
suffix: "Pt"
label: "tkElectron"
match_dR: 0.15
cuts:
- "{passeseleid} == 1"
- "abs({eta}) < 2.8"
EG:default:barrel: "Pt"
tkElectron:NoIso:barrel: "Pt"
tkElectron:NoIsoLowPt:barrel: "Pt"
tkElectron:Iso:barrel: "Pt"
thresholds: [10, 20, 30, 40]
scalings:
method: "naive"
Expand All @@ -35,15 +25,16 @@ ElectronsTriggerBarrel:
ylabel: "Trigger Efficiency (barrel, L1 $p_T > <threshold>$ GeV)"
binning:
min: 0
max: 150
max: 100
step: 1.5

ElectronsTriggerEndcap:
sample: Zee
default_version: V26
sample: DYLL_M50
version: V29
match_test_to_ref: True
reference_object:
object: "part_e"
suffix: "Pt"
x_arg: "Pt"
label: "Gen Electrons"
cuts:
event:
Expand All @@ -52,21 +43,10 @@ ElectronsTriggerEndcap:
object:
- "abs({eta}) < 2.8"
test_objects:
EG:
suffix: "Pt"
label: "EG Electron"
match_dR: 0.2
quality_id: "QUAL_125x_EGID"
cuts:
- "abs({eta}) < 2.8"
# - "{passessaid} == 1"
tkElectron:
suffix: "Pt"
label: "tkElectron"
match_dR: 0.15
cuts:
- "{passeseleid} == 1"
- "abs({eta}) < 2.8"
EG:default:endcap: "Pt"
tkElectron:NoIso:endcap: "Pt"
tkElectron:NoIsoLowPt:endcap: "Pt"
tkElectron:Iso:endcap: "Pt"
thresholds: [10, 20, 30, 40]
scalings:
method: "naive"
Expand All @@ -75,5 +55,5 @@ ElectronsTriggerEndcap:
ylabel: "Trigger Efficiency (endcap, L1 $p_T > <threshold>$ GeV)"
binning:
min: 0
max: 150
max: 100
step: 1.5
Loading
Loading