Skip to content

Commit

Permalink
Update algorithm switching point
Browse files Browse the repository at this point in the history
Results indicated that N2Tiled gets faster than N2Plain
between 65 and 112 initial clusters, so 90 is a good intermediate
pick
  • Loading branch information
graeme-a-stewart committed Apr 5, 2024
1 parent cabd4e2 commit e0485c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/GenericAlgo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ function generic_jet_reconstruct(particles; p = -1, R = 1.0, recombine = +, ptmi
# or to an optimal choice based on the density of initial particles

if strategy == JetRecoStrategy.Best
algorithm = length(particles) > 50 ? tiled_jet_reconstruct : plain_jet_reconstruct
# The breakpoint of ~90 is determined empirically on e+e- -> H and 0.5TeV pp -> 5GeV jets
algorithm = length(particles) > 80 ? tiled_jet_reconstruct : plain_jet_reconstruct
elseif strategy == JetRecoStrategy.N2Plain
algorithm = plain_jet_reconstruct
elseif strategy == JetRecoStrategy.N2Tiled
Expand Down

0 comments on commit e0485c1

Please sign in to comment.