From e0485c1f26be7bf805149acc114a93394ffcbce1 Mon Sep 17 00:00:00 2001 From: Graeme A Stewart Date: Wed, 3 Apr 2024 13:33:16 +0200 Subject: [PATCH] Update algorithm switching point Results indicated that N2Tiled gets faster than N2Plain between 65 and 112 initial clusters, so 90 is a good intermediate pick --- src/GenericAlgo.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GenericAlgo.jl b/src/GenericAlgo.jl index 5dd7e14..3fc3037 100644 --- a/src/GenericAlgo.jl +++ b/src/GenericAlgo.jl @@ -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