@@ -9,7 +9,7 @@ function Base.isapprox(j1::PseudoJet, j2::PseudoJet)
99end
1010
1111# Expected constituent indexes and parent indexes
12- const expected_constituent_indexes = [84 , 85 , 139 , 86 , 133 , 74 , 79 , 124 , 76 , 75 , 163 ]
12+ const expected_constituent_indexes = [167 , 87 , 119 , 168 , 151 , 152 , 49 , 143 , 41 , 106 ]
1313const expected_parent_indexes = [320 , 335 ]
1414
1515input_file = joinpath (dirname (pathof (JetReconstruction)), " .." , " test" , " data" ,
@@ -27,15 +27,15 @@ pj_jets = inclusive_jets(cluster_seq; ptmin = 5.0, T = PseudoJet)
2727@testset " Jet constituents" begin
2828 @testset " Constituents of jet number $(event_no) " begin
2929 my_constituents = JetReconstruction. constituents (pj_jets[event_no], cluster_seq)
30- @test size (my_constituents)[1 ] == 11
30+ @test size (my_constituents)[1 ] == length (expected_constituent_indexes)
3131 for (i, idx) in enumerate (expected_constituent_indexes)
3232 @test my_constituents[i] ≈ events[1 ][idx]
3333 end
3434 end
3535
3636 @testset " Constituent indexes for jet number $(event_no) " begin
3737 my_constituent_indexes = constituent_indexes (pj_jets[event_no], cluster_seq)
38- @test size (my_constituent_indexes)[1 ] == 11
38+ @test size (my_constituent_indexes)[1 ] == length (expected_constituent_indexes)
3939 # Testing the index values is sufficient, the content came from the original input file!
4040 @test my_constituent_indexes == expected_constituent_indexes
4141 end
0 commit comments