Skip to content

Commit 7155768

Browse files
committed
julia formatter
1 parent 75eea28 commit 7155768

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/EEAlgorithm.jl

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ function get_angular_nearest_neighbours!(eereco, algorithm, dij_factor, p, invR2
132132
if algorithm == JetAlgorithm.Valencia
133133
eereco.dijdist[i] = valencia_distance(eereco, i, eereco[i].nni, invR2)
134134
else
135-
eereco.dijdist[i] = dij_dist(eereco, i, eereco[i].nni, dij_factor, algorithm, invR2)
135+
eereco.dijdist[i] = dij_dist(eereco, i, eereco[i].nni, dij_factor, algorithm,
136+
invR2)
136137
end
137138
end
138139
# For the EEKt and Valencia algorithms, we need to check the beam distance as well
@@ -260,7 +261,7 @@ Base.@propagate_inbounds @inline function fill_reco_array!(eereco, particles, in
260261
@inbounds for i in eachindex(particles)
261262
eereco.index[i] = i
262263
eereco.nni[i] = 0
263-
eereco.nndist[i] = inv(invR2) # R^2 as initial sentinel for angular algorithms
264+
eereco.nndist[i] = inv(invR2) # R^2 as initial sentinel for angular algorithms
264265
# eereco.dijdist[i] = UNDEF # Does not need to be initialised
265266
eereco.nx[i] = nx(particles[i])
266267
eereco.ny[i] = ny(particles[i])
@@ -271,11 +272,11 @@ Base.@propagate_inbounds @inline function fill_reco_array!(eereco, particles, in
271272
end
272273

273274
Base.@propagate_inbounds @inline function insert_new_jet!(eereco, i, newjet_k, invR2,
274-
merged_jet, p)
275+
merged_jet, p)
275276
@inbounds begin
276277
eereco.index[i] = newjet_k
277278
eereco.nni[i] = 0
278-
eereco.nndist[i] = inv(invR2)
279+
eereco.nndist[i] = inv(invR2)
279280
eereco.nx[i] = nx(merged_jet)
280281
eereco.ny[i] = ny(merged_jet)
281282
eereco.nz[i] = nz(merged_jet)
@@ -399,7 +400,8 @@ function ee_genkt_algorithm(particles::AbstractVector{T}; algorithm::JetAlgorith
399400
invR2 = inv(R * R)
400401
# Now call the unified implementation with conditional logic.
401402
return _ee_genkt_algorithm(particles = recombination_particles, p = p, R = R,
402-
invR2 = invR2, algorithm = algorithm, recombine = recombine, γ = γ)
403+
invR2 = invR2, algorithm = algorithm, recombine = recombine,
404+
γ = γ)
403405
end
404406

405407
"""
@@ -435,7 +437,8 @@ entry point to this jet reconstruction.
435437
"""
436438
function _ee_genkt_algorithm(; particles::AbstractVector{EEJet},
437439
algorithm::JetAlgorithm.Algorithm, p::Real, R::Real,
438-
invR2::Union{Real, Nothing} = nothing, recombine = addjets, γ::Real = 1.0,
440+
invR2::Union{Real, Nothing} = nothing, recombine = addjets,
441+
γ::Real = 1.0,
439442
beta::Union{Real, Nothing} = nothing)
440443
# Bounds
441444
N::Int = length(particles)

0 commit comments

Comments
 (0)