Commit def12cb
feat(backport): correctionlib (JSON-POG) adapter classes for CorrectedJetsFactory (#1522)
* feat: add correctionlib adapters and tests for jet corrections
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* feat: add input validation for JEC corrections and update test documentation
* fix: standardize assertion methods in correctionlib adapter tests and update name mapping for consistency
* use Rho for the other test too
* rename test
* remove a few rtol and atol
* consistency with master
* fix: enhance getCorrection, getResolution, and getScaleFactor methods to support lazy caching
* consistency with old jetmet tools regarding virtualness
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Iason Krommydas <iason.krom@gmail.com>1 parent eda299d commit def12cb
14 files changed
Lines changed: 962 additions & 8 deletions
File tree
- coffea/jetmet_tools
- tests
- samples
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
14 | 21 | | |
15 | 22 | | |
16 | 23 | | |
| |||
20 | 27 | | |
21 | 28 | | |
22 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
23 | 35 | | |
0 commit comments