Skip to content
Snippets Groups Projects
Verified Commit 68f1e93a authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Add tests for orientations

parent 34e4d826
No related branches found
No related tags found
1 merge request!32Orientations readout and interpolation
......@@ -22,3 +22,12 @@ end
det = Detector(datapath("detx", "km3net_offline.detx"))
@test 9.61317647058823 floordist(det)
end
@testset "orientations" begin
o = read(datapath("calib", "KM3NeT_00000133_D_1.0.0_00017397_00017496_1.orientations.root"), Orientations)
module_id = 817589211
min_t, max_t = extrema(o.times[module_id])
@test [0.8260205110995139, 0.003912907129683348, -0.004395551387888641, -0.5636093359133512] == o(module_id, min_t)
@test [0.8289446524907407, 0.004590185819553083, -0.0007479055911552097, -0.5593113032456739] == o(module_id, max_t)
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment