-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt tests to allow variable float types
Numerical type can be passed as a parameter to the test struct This is passed down to read the events in the required precision. Add some tests for e+e- and pp in Float32
- Loading branch information
1 parent
faf67cf
commit 9f96393
Showing
4 changed files
with
58 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Tests of reconstruction algorithms in Float32 | ||
|
||
include("common.jl") | ||
|
||
durham_njets3_f32 = ComparisonTest(events_file_ee, | ||
joinpath(@__DIR__, "data", | ||
"jet-collections-fastjet-njets3-Durham-eeH.json.gz"), | ||
JetAlgorithm.Durham, RecoStrategy.N2Plain, 1, 4.0, | ||
(cs) -> exclusive_jets(cs; njets = 3), | ||
"exclusive njets Float32", Float32) | ||
|
||
run_reco_test(durham_njets3_f32) | ||
|
||
antikt_pcut_f32 = ComparisonTest(events_file_pp, | ||
joinpath(@__DIR__, "data", | ||
"jet-collections-fastjet-inclusive-AntiKt.json.gz"), | ||
JetAlgorithm.AntiKt, RecoStrategy.N2Tiled, -1, 0.4, | ||
(cs) -> inclusive_jets(cs; ptmin = 5.0), | ||
"inclusive-float32", Float32) | ||
run_reco_test(antikt_pcut_f32) |