JMECalculator module#

class mkShapesRDF.processor.modules.JMECalculator.JMECalculator(JEC_era, JER_era, jet_object, met_collections=['PuppiMET', 'MET', 'RawMET'], do_Jets=True, do_MET=True, do_JER=True, store_nominal=True, store_variations=True)[source][source]#

Bases: Module

This module calculates the JES/JER for jets and MET objects and stores the nominal values and the variations (up/down) in the output tree.

Methods

run(df, values)

No module should overwrite this method.

runModule(df, values)

The main method of the module.

__init__(JEC_era, JER_era, jet_object, met_collections=['PuppiMET', 'MET', 'RawMET'], do_Jets=True, do_MET=True, do_JER=True, store_nominal=True, store_variations=True)[source][source]#

JMECalculator module

Parameters:
JEC_erastr

JEC era to use

JER_erastr

JER era to use

jet_objectstr

Jet Collection to use (e.g. CleanJet)

met_collectionslist, optional, default: ["PuppiMET", "MET"]

MET collections to use

do_Jetsbool, optional, default: True

Whether to calculate JES/JER for jets

do_METbool, optional, default: True

Whether to calculate JES/JER for MET objects

do_JERbool, optional, default: True

Whether to calculate JER

store_nominalbool, optional, default: True

Whether to store the nominal values (corrected or smeared)

store_variationsbool, optional

Whether to store the variations (up/down) for JES/JER

runModule(df, values)[source][source]#

The main method of the module. It should contain all the logic of the module.

Parameters:
dfmRDF

The mRDF dataframe

valueslist

List of values that are passed between modules (should contain efficiency of cuts and other values)

Returns:
mRDF

The modified mRDF dataframe