JECStack#

class coffea.jetmet_tools.JECStack(corrections, jec=None, junc=None, jer=None, jersf=None)[source]#

Bases: object

Mostly used as an input to CorrectedJetsFactory. Hosts and organizes multiple corrections under one object.

jec, junc, etc. can be explicitly set by passing in the appropriate corrector class (eg: FactorizedJetCorrector). If they are not set, correctors will be created, using the info in corrections as input.

Parameters:
  • corrections (dict[str, lookup_base]) – A dict-like of function names and functions. The function depends on the type of correction (eg: for JEC, should be jme_standard_function). We expect JEC names to be formatted as their filenames.

  • jec (FactorizedJetCorrector, optional) – If provided, overrides the jec that would be created from corrections in the stack.

  • junc (JetCorrectionUncertainty, optional) – If provided, overrides the junc that would be created from corrections in the stack.

  • jer (JetResolution, optional) – If provided, overrides the jer that would be created from corrections in the stack.

  • jersf (JetResolutionScaleFactor, optional) – If provided, overrides the jersf that would be created from corrections in the stack.

Attributes Summary

blank_name_map

A dictionary in the form of the name_map input parameter for CorrectedJetsFactory, with all keys mapped to None.

jec

The stack's FactorizedJetCorrector object.

jer

The stack's JetResolution object.

jersf

The stack's JetResolutionScaleFactor object.

junc

The stack's JetCorrectionUncertainty object.

Attributes Documentation

blank_name_map#

A dictionary in the form of the name_map input parameter for CorrectedJetsFactory, with all keys mapped to None.

jec#

The stack’s FactorizedJetCorrector object.

jer#

The stack’s JetResolution object.

jersf#

The stack’s JetResolutionScaleFactor object.

junc#

The stack’s JetCorrectionUncertainty object.