JetResolutionScaleFactor#

class coffea.jetmet_tools.JetResolutionScaleFactor(**kwargs)[source]#

Bases: object

This class is a columnar implementation of the JetResolutionScaleFactor tool in CMSSW and FWLite. It calculates the jet energy resolution scale factor for a corrected jet in a given binning.

It implements the jet energy scale factor definition specified in the JER TWiki.

You can use this class as follows:

jersf = JetResolutionScaleFactor(name1=corrL1,...)
jetResSF = jersf.getScaleFactor(JetParameter1=jet.parameter1,...)

in which jetResSF are the scale factors, with the same shape as the input parameters. In order to see which parameters must be passed to getScaleFactor, one can do jersf.signature.

You construct a JetResolutionScaleFactor 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’ extractor and evaluator to get the functions from some input files.

Attributes Summary

signature

list the necessary jet properties that must be input to this function

Methods Summary

getScaleFactor(**kwargs)

Returns the set of resolutions for all input jets at the highest available level

Attributes Documentation

signature#

list the necessary jet properties that must be input to this function

Methods Documentation

getScaleFactor(**kwargs)[source]#

Returns the set of resolutions for all input jets at the highest available level

Use it like:

jersfs = jersf.getScaleFactor(JetProperty1=jet.property1,...)