Update JEC and JER modules based on correctionlib
JEC and JER in JSON format are provided and maintained by JMEPOG now: see jsonpog. The latest JEC is ready in this MR.
The correctionlib
is a straightforward way to use these JSON files. We can use it to update the JEC and JER modules to replace the current coffea.jetmet_tools
.
Some useful links:
- Example of evaluating the SFs and corrections from the JME JSON files: https://gitlab.cern.ch/cms-nanoAOD/jsonpog-integration/-/blob/master/examples/jercExample.py?ref_type=heads
- Example of jet smearing: https://github.com/cms-nanoAOD/correctionlib/issues/130
- Example of
coffea.jetmet_tools
: https://github.com/CoffeaTeam/coffea/blob/master/tests/test_jetmet_tools.py - Example of
nanoaod-tools
: https://github.com/cms-nanoAOD/nanoAOD-tools/blob/master/python/postprocessing/modules/jme/jetmetUncertainties.py