Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
KM3io.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
common
KM3io.jl
Commits
20c9ee6f
Verified
Commit
20c9ee6f
authored
2 years ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Consolidation of NeRCA.jl stuff
parent
854d9a71
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/KM3io.jl
+10
-1
10 additions, 1 deletion
src/KM3io.jl
src/hardware.jl
+1
-0
1 addition, 0 deletions
src/hardware.jl
src/types.jl
+18
-4
18 additions, 4 deletions
src/types.jl
test/runtests.jl
+1
-0
1 addition, 0 deletions
test/runtests.jl
with
30 additions
and
5 deletions
src/KM3io.jl
+
10
−
1
View file @
20c9ee6f
...
...
@@ -11,11 +11,19 @@ using StaticArrays: FieldVector
using
UnROOT
export
OnlineFile
export
Position
,
UTMPosition
,
Location
,
Quaternion
export
Direction
,
Position
,
UTMPosition
,
Location
,
Quaternion
export
Detector
,
DetectorModule
,
PMT
,
Tripod
,
Hydrophone
export
Waveform
,
AcousticsTriggerParameter
,
piezoenabled
,
hydrophoneenabled
export
is3dshower
,
ismxshower
,
is3dmuon
,
isnb
export
Hit
,
TriggeredHit
export
calibrate
,
floordist
# KM3NeT Dataformat definitions
...
...
@@ -34,6 +42,7 @@ include("root/online.jl")
include
(
"root/offline.jl"
)
include
(
"daq.jl"
)
include
(
"acoustics.jl"
)
include
(
"calibration.jl"
)
include
(
"tools.jl"
)
...
...
This diff is collapsed.
Click to expand it.
src/hardware.jl
+
1
−
0
View file @
20c9ee6f
...
...
@@ -212,6 +212,7 @@ function Base.iterate(d::Detector, state=(Int[], 1))
end
(
d
.
modules
[
module_ids
[
count
]],
(
module_ids
,
count
+
1
))
end
Base
.
getindex
(
d
::
Detector
,
module_id
)
=
d
.
modules
[
module_id
]
"""
...
...
This diff is collapsed.
Click to expand it.
src/types.jl
+
18
−
4
View file @
20c9ee6f
...
...
@@ -17,6 +17,12 @@ struct Direction{T} <: FieldVector{3, T}
end
Direction
(
ϕ
,
θ
)
=
Direction
(
cos
(
ϕ
)
*
sin
(
θ
),
sin
(
ϕ
)
*
sin
(
θ
),
cos
(
θ
))
struct
Track
dir
::
Direction
pos
::
Position
time
end
struct
Quaternion
{
T
}
<:
FieldVector
{
4
,
T
}
q0
::
T
qx
::
T
...
...
@@ -48,22 +54,30 @@ struct TriggeredHit <: AbstractDAQHit
trigger_mask
::
UInt64
end
struct
Hit
<:
AbstractDAQHit
dom_id
::
Int32
channel_id
::
UInt8
t
::
Int32
tot
::
UInt8
trigger_mask
::
UInt64
end
mutable struct
Multiplicity
count
::
Int32
id
::
Int64
end
struct
CalibratedHit
<:
AbstractDAQHit
channel_id
::
UInt32
dom_id
::
UInt32
du
::
UInt8
floor
::
UInt8
channel_id
::
UInt32
t
::
Float64
tot
::
UInt8
trigger_mask
::
UInt64
pos
::
Position
dir
::
Direction
t0
::
Float64
trigger_mask
::
UInt64
du
::
UInt8
floor
::
UInt8
multiplicity
::
Multiplicity
end
...
...
This diff is collapsed.
Click to expand it.
test/runtests.jl
+
1
−
0
View file @
20c9ee6f
...
...
@@ -5,3 +5,4 @@ include("daq.jl")
include
(
"tools.jl"
)
include
(
"hardware.jl"
)
include
(
"acoustics.jl"
)
include
(
"calibration.jl"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment