higgs_dna.systematics package

Submodules

higgs_dna.systematics.event_systematics module

higgs_dna.systematics.photon_systematics module

higgs_dna.systematics.photon_systematics.FNUF(pt, events, year='2017', is_correction=True)[source]

—This is an implementation of the FNUF uncertainty copied from flashgg, — Preliminary JSON (run2 I don’t know if this needs to be changed) file created with correctionlib starting from flashgg: https://github.com/cms-analysis/flashgg/blob/2677dfea2f0f40980993cade55144636656a8a4f/Systematics/python/flashggDiPhotonSystematics2017_Legacy_cfi.py Applies the photon pt and energy scale corrections and corresponding uncertainties (only on the pt because it is what is used in selection). To be checked by experts

higgs_dna.systematics.photon_systematics.Scale(pt, events, year='2022postEE', is_correction=True)[source]

Applies the photon pt scale corrections (use on data!) and corresponding uncertainties (on MC!). JSON needs to be pulled first with scripts/pull_files.py

higgs_dna.systematics.photon_systematics.ShowerShape(pt, events, year='2017', is_correction=True)[source]

—This is an implementation of the ShowerShape uncertainty copied from flashgg, — Preliminary JSON (run2 I don’t know if this needs to be changed) file created with correctionlib starting from flashgg: https://github.com/cms-analysis/flashgg/blob/2677dfea2f0f40980993cade55144636656a8a4f/Systematics/python/flashggDiPhotonSystematics2017_Legacy_cfi.py Applies the photon pt and energy scale corrections and corresponding uncertainties (only on the pt because it is what is used in selection). To be checked by experts

higgs_dna.systematics.photon_systematics.Smearing(pt, events, year='2022postEE', is_correction=True)[source]

Applies the photon smearing corrections and corresponding uncertainties (on MC!). JSON needs to be pulled first with scripts/pull_files.py

higgs_dna.systematics.photon_systematics.photon_pt_scale_dummy(pt, **kwargs)[source]

Module contents

higgs_dna.systematics.check_corr_syst_combinations(corrections_dict, systematics_dict, logger)[source]

This function is a sanity check for the choice of systematics and corrections which the user wants to process. It ensures that systematic variations of a correction can only be processed when the correction itself is applied.