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

Add calibration include

parent eba57271
No related branches found
No related tags found
1 merge request!32Orientations readout and interpolation
......@@ -59,6 +59,7 @@ include("hardware.jl")
include("root/online.jl")
include("root/offline.jl")
include("root/root.jl")
include("root/calibration.jl")
include("hdf5/hdf5.jl")
include("daq.jl")
include("acoustics.jl")
......
struct Orientations
times::Vector{Float64}
quaternions::Vector{Quaternion}
end
function orientations(f::UnROOT.ROOTFile)
q_out = Dict{Int, Vector{Quaternion}}()
for (module_id, t, a, b, c, d) in zip([UnROOT.LazyBranch(f, "ORIENTATION/ORIENTATION/$(b)") for b in ["id", "t", "JCOMPASS::JQuaternion/a", "JCOMPASS::JQuaternion/b", "JCOMPASS::JQuaternion/c", "JCOMPASS::JQuaternion/d"]]...)
if !haskey(q_out, module_id)
q_out[module_id] = Quaternion[]
end
push!(q_out[module_id], Quaternion(a, b, c, d))
end
q_out
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