higgs_dna.selections package

Submodules

higgs_dna.selections.jet_selections module

higgs_dna.selections.jet_selections.getBTagMVACut(mva_name, mva_wp, year)[source]
higgs_dna.selections.jet_selections.jetvetomap(self, events, logger, dataset_name, year='2022preEE')[source]

Jet veto map

higgs_dna.selections.jet_selections.select_fatjets(self, fatjets: Array, diphotons: Array, muons: Array, electrons: Array) Array[source]
higgs_dna.selections.jet_selections.select_jets(self, jets: Array, diphotons: Array, muons: Array, electrons: Array, taus: Array = None) Array[source]
higgs_dna.selections.jet_selections.select_jets_eta_dependent(self, jets: Array, diphotons: Array, muons: Array, electrons: Array, taus: Array = None) Array[source]

Selects jets with eta-dependent pT cuts, added as a temporary fix following https://gitlab.cern.ch/cms-jetmet/coordination/coordination/-/issues/113

Special args:

jet_pt_thresholds (list): Minimum pT thresholds for each eta bin jet_eta_thresholds (list): Absolute eta thresholds for each bin of the selection

Example usage:

jet_pt_thresholds = [20, 50, 30] jet_eta_thresholds = [2.5, 3.0, 4.7] will select all jets that pass: 20 GeV for |eta| < 2.5 ; 50 GeV for 2.5<|eta|<3 ; 30 GeV for |eta|>3

higgs_dna.selections.lepton_selections module

higgs_dna.selections.lepton_selections.select_electrons(self, electrons: Array, diphotons: Array, keep_transition_region: bool = False) Array[source]
higgs_dna.selections.lepton_selections.select_muons(self, muons: Array, diphotons: Array) Array[source]
higgs_dna.selections.lepton_selections.select_taus(self, taus: Array, diphotons: Array) Array[source]

higgs_dna.selections.object_selections module

higgs_dna.selections.object_selections.delta_phi_mask(Phi1: Array, Phi2: Array, threshold: float) Array[source]
higgs_dna.selections.object_selections.delta_r_mask(first: Array, second: Array, threshold: float) Array[source]

Select objects from first which are at least threshold away from all objects in second. The result is a mask (i.e., a boolean array) of the same shape as first.

Parameters:
  • first (coffea.nanoevents.methods.candidate.PtEtaPhiMCandidate) – objects which are required to be at least threshold away from all objects in second

  • second (coffea.nanoevents.methods.candidate.PtEtaPhiMCandidate) – objects which are all objects in first must be at leats threshold away from

  • threshold (float) – minimum delta R between objects

Returns:

boolean array of objects in objects1 which pass delta_R requirement

Return type:

coffea.nanoevents.methods.candidate.PtEtaPhiMCandidate

Module contents