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

Add ROOT stuff

parent b371e63b
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
UnROOT = "3cd96dde-e98d-4713-81e9-a4a1b0235ce9"
[compat]
julia = "1"
......
......@@ -20,9 +20,12 @@ for inc ∈ readdir(joinpath(@__DIR__, "definitions"), join=true)
end
include("tools.jl")
include("types.jl")
include("hardware.jl")
include("acoustics.jl")
include("root.jl")
include("tools.jl")
end # module
......@@ -3,3 +3,13 @@
Return `true` if the n-th bit of `a` is set, `false` otherwise.
"""
nthbitset(n, a) = Bool((a >> n) & 1)
is3dmuon(e::DAQEvent) = nthbitset(Trigger.JTRIGGER3DMUON, e.trigger_mask)
is3dshower(e::DAQEvent) = nthbitset(Trigger.JTRIGGER3DSHOWER, e.trigger_mask)
ismxshower(e::DAQEvent) = nthbitset(Trigger.JTRIGGERMXSHOWER, e.trigger_mask)
isnb(e::DAQEvent) = nthbitset(Trigger.JTRIGGERNB, e.trigger_mask)
is3dmuon(x) = nthbitset(Trigger.JTRIGGER3DMUON, x)
is3dshower(x) = nthbitset(Trigger.JTRIGGER3DSHOWER, x)
ismxshower(x) = nthbitset(Trigger.JTRIGGERMXSHOWER, x)
isnb(x) = nthbitset(Trigger.JTRIGGERNB, x)
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