FactorizedJetCorrector#
- class coffea.jetmet_tools.FactorizedJetCorrector(**kwargs)[source]#
Bases:
objectThis class is a columnar implementation of the FactorizedJetCorrector tool in CMSSW and FWLite. It applies a series of JECs in ascending order as defined by ‘_level_order’, and checks for the consistency of input corrections.
It implements the jet energy correction definition specified in the JEC TWiki.
You can use this class as follows:
fjc = FactorizedJetCorrector(name1=corrL1,...) jetCorrs = fjc.getCorrection(JetParameter1=jet.parameter1,...)
in which
jetCorrsare the corrected jet scaled factors, with the same shape as the input parameters. In order to see what parameters must be passed togetCorrection(), one can dofjc.signature.You construct a FactorizedJetCorrector by passing in a dict of names and functions. Names must be formatted as ‘<campaign>_<dataera>_<datatype>_<level>_<jettype>’. You can use coffea.lookup_tools’
extractorandevaluatorto get the functions from some input files.Attributes Summary
list the necessary jet properties that must be input to this function
Methods Summary
getCorrection(**kwargs)Returns the set of corrections for all input jets at the highest available level
getSubCorrections(**kwargs)Returns the set of corrections for all input jets broken down by level
Attributes Documentation
- signature#
list the necessary jet properties that must be input to this function
Methods Documentation