Skip to content

Commit faf67cf

Browse files
Fix for jetreco.jl jet types
We explicitly use Float64 here, because this is deliberately the simple case.
1 parent 5487316 commit faf67cf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

examples/jetreco.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,17 +140,19 @@ function main()
140140
logger = ConsoleLogger(stdout, Logging.Info)
141141
global_logger(logger)
142142
# Try to read events into the correct type!
143-
if JetReconstruction.is_ee(args[:algorithm])
144-
jet_type = EEjet
143+
# If we don't have an algorithm we default to PseudoJet
144+
if !isnothing(args[:algorithm])
145+
JetReconstruction.is_ee(args[:algorithm])
146+
jet_type = EEjet{Float64}
145147
else
146-
jet_type = PseudoJet
148+
jet_type = PseudoJet{Float64}
147149
end
148150
events::Vector{Vector{jet_type}} = read_final_state_particles(args[:file],
149151
maxevents = args[:maxevents],
150152
skipevents = args[:skip],
151153
T = jet_type)
152154
if isnothing(args[:algorithm]) && isnothing(args[:power])
153-
@warn "Neither algorithm nor power specified, defaulting to AntiKt"
155+
@warn "Neither algorithm nor power specified, defaulting to pp event AntiKt"
154156
args[:algorithm] = JetAlgorithm.AntiKt
155157
end
156158
jet_process(events, distance = args[:distance], algorithm = args[:algorithm],

0 commit comments

Comments
 (0)