Skip to content

Commit

Permalink
Merge pull request #548 from CoffeaTeam/jer-smear-deltapt
Browse files Browse the repository at this point in the history
reinstate delta-pt-rel cut to JER smearings
  • Loading branch information
lgray authored Jul 2, 2021
2 parents dea5818 + f25f32b commit 5f1a24b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions coffea/jetmet_tools/CorrectedJetsFactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ def jer_smear(

jersmear = jet_energy_resolution * jet_resolution_rand_gauss
jersf = jet_energy_resolution_scale_factor[:, variation]
doHybrid = pt_gen > 0
deltaPtRel = (jetPt - pt_gen) / jetPt
doHybrid = (pt_gen > 0) & (numpy.abs(deltaPtRel) < 3)

detSmear = 1 + (jersf - 1) * (jetPt - pt_gen) / jetPt # because of awkward1.0#367
detSmear = 1 + (jersf - 1) * deltaPtRel
stochSmear = 1 + numpy.sqrt(numpy.maximum(jersf ** 2 - 1, 0)) * jersmear

min_jet_pt = _MIN_JET_ENERGY / numpy.cosh(etaJet)
Expand Down

0 comments on commit 5f1a24b

Please sign in to comment.