Skip to content
Snippets Groups Projects

Merging full workflow into Tanay's HiggsDNA

Open Sergi Castells requested to merge castells/higgs-dna-4-gamma-tanays-copy:master into master
Compare and Show latest version
6 files
+ 54
28
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -161,7 +161,7 @@ def photon_preselection(
)
return photons
else:
#return photons[ --orig
# return photons[ --orig
# (photons.electronVeto > e_veto)
# & (photons.pt > self.min_pt_photon)
# & (photons.isScEtaEB | photons.isScEtaEE)
@@ -175,14 +175,15 @@ def photon_preselection(
# | (rel_iso < self.max_chad_rel_iso)
# )
# & (isEB_high_r9 | isEB_low_r9 | isEE_high_r9 | isEE_low_r9)
#]
# ]
return photons[
(photons.pt > self.min_pt_photon) #to be removed later
(photons.pt > self.min_pt_photon) #to be removed later
& (photons.mvaID > self.min_mvaid)
& (abs(photons.eta)<=2.5)
& ((abs(photons.eta)>=1.566) | (abs(photons.eta)<=1.4442))
& (abs(photons.eta) <= 2.5)
& ((abs(photons.eta) >= 1.566) | (abs(photons.eta) <= 1.4442))
]
def photon_preselection_h4g(
self, photons: awkward.Array, events: awkward.Array, year="2022"
) -> awkward.Array:
@@ -254,5 +255,5 @@ def photon_preselection_h4g(
iso = iso_r9 | iso_charged | iso_charged_rel
all_cuts = pt_cuts & eta & e_veto & hlt_all & iso
return events, photons[all_cuts], all_cuts
\ No newline at end of file
return events, photons[all_cuts], all_cuts
Loading