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:
ModuleThis 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_era
str JEC era to use
- JER_era
str JER era to use
- jet_object
str Jet Collection to use (e.g.
CleanJet)- met_collections
list, 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
- JEC_era
- runModule(df, values)[source][source]#
The main method of the module. It should contain all the logic of the module.
- Parameters:
- df
mRDF The
mRDFdataframe- values
list List of values that are passed between modules (should contain efficiency of cuts and other values)
- df
- Returns:
mRDFThe modified mRDF dataframe