Skip to content

Commit bc2684e

Browse files
Only set cluster history for Jet types
Only the abstract type Jet has a cluster history index, so only set the index if that is the case
1 parent 3c286f5 commit bc2684e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function read_final_state_particles(fname; maxevents = -1, skipevents = 0, T = P
5151
if p.status == 1
5252
# Annoyingly PseudoJet and LorentzVector constructors
5353
# disagree on the order of arguments...
54-
if T <: FourMomentum
54+
if T <: Jet
5555
particle = T(p.momentum.x, p.momentum.y, p.momentum.z, p.momentum.t, particle_index)
5656
else
5757
particle = T(p.momentum.t, p.momentum.x, p.momentum.y, p.momentum.z)

0 commit comments

Comments
 (0)