Skip to content

Commit

Permalink
np -> numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray authored Jul 2, 2021
1 parent f0fd55d commit f25f32b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coffea/jetmet_tools/CorrectedJetsFactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def jer_smear(
jersmear = jet_energy_resolution * jet_resolution_rand_gauss
jersf = jet_energy_resolution_scale_factor[:, variation]
deltaPtRel = (jetPt - pt_gen) / jetPt
doHybrid = (pt_gen > 0) & (np.abs(deltaPtRel) < 3)
doHybrid = (pt_gen > 0) & (numpy.abs(deltaPtRel) < 3)

detSmear = 1 + (jersf - 1) * deltaPtRel
stochSmear = 1 + numpy.sqrt(numpy.maximum(jersf ** 2 - 1, 0)) * jersmear
Expand Down

0 comments on commit f25f32b

Please sign in to comment.