Skip to content

Commit 97046e3

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

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

examples/jetreco.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,17 +140,18 @@ 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]) JetReconstruction.is_ee(args[:algorithm])
145+
jet_type = EEjet{Float64}
145146
else
146-
jet_type = PseudoJet
147+
jet_type = PseudoJet{Float64}
147148
end
148149
events::Vector{Vector{jet_type}} = read_final_state_particles(args[:file],
149150
maxevents = args[:maxevents],
150151
skipevents = args[:skip],
151152
T = jet_type)
152153
if isnothing(args[:algorithm]) && isnothing(args[:power])
153-
@warn "Neither algorithm nor power specified, defaulting to AntiKt"
154+
@warn "Neither algorithm nor power specified, defaulting to pp event AntiKt"
154155
args[:algorithm] = JetAlgorithm.AntiKt
155156
end
156157
jet_process(events, distance = args[:distance], algorithm = args[:algorithm],

0 commit comments

Comments
 (0)