CorrectedMETFactory#
- class coffea.jetmet_tools.CorrectedMETFactory(name_map)[source]#
Bases:
objectFactory class for propagating corrections made to jets into a corrected value of MET. This includes organizing different variations associated with uncertainties in MET from unclustered energy.
Once the
CorrectedMETFactoryis constructed, an array of corrected MET values and variations can be produced with thebuildmethod, which requires an array of uncorrected MET and an array of corrected jets.- Parameters:
name_map (
dict[str,str]) –Keys must include at least the following:
METpt
METphi
JetPt
JetPhi
ptRaw
UnClusteredEnergyDeltaX
UnClusteredEnergyDeltaY
and each of those must be mapped to the corresponding field name of the input arrays
in_METandin_corrected_jetsfor thebuildmethod.
Methods Summary
build(in_MET, in_corrected_jets)Produce an array of corrected MET values from an array of uncorrected MET values and an array of corrected jets.
Returns a list of the sources of uncertainty included in the stack.
Methods Documentation
- build(in_MET, in_corrected_jets)[source]#
Produce an array of corrected MET values from an array of uncorrected MET values and an array of corrected jets.
- Parameters:
in_MET (
awkward.Arrayordask_awkward.Array) – An array of raw (uncorrected) MET values.in_corrected_jets (
awkward.Arrayordask_awkward.Array) – An array of corrected jets, as produced byCorrectedJetsFactory.
- Returns:
Array of corrected MET values with shape matching
in_MET.- Return type: