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
85b78c31
Verified
Commit
85b78c31
authored
1 year ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Remove Multiplicity and rename du to string in XCalibratedHit
parent
bd367db8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/calibration.jl
+2
-3
2 additions, 3 deletions
src/calibration.jl
src/types.jl
+1
-7
1 addition, 7 deletions
src/types.jl
with
3 additions
and
10 deletions
src/calibration.jl
+
2
−
3
View file @
85b78c31
...
...
@@ -12,14 +12,13 @@ function calibrate(det::Detector, hits)
dir
=
det
[
dom_id
][
channel_id
]
.
dir
t0
=
det
[
dom_id
][
channel_id
]
.
t₀
t
=
hit
.
t
+
t0
du
=
det
[
dom_id
]
.
location
.
string
string
=
det
[
dom_id
]
.
location
.
string
floor
=
det
[
dom_id
]
.
location
.
floor
trigger_mask
=
has_trigger_mask
?
hit
.
trigger_mask
:
0
c_hit
=
XCalibratedHit
(
dom_id
,
channel_id
,
t
,
tot
,
trigger_mask
,
pos
,
dir
,
t0
,
du
,
floor
,
Multiplicity
(
0
,
0
)
string
,
floor
)
push!
(
calibrated_hits
,
c_hit
)
end
...
...
This diff is collapsed.
Click to expand it.
src/types.jl
+
1
−
7
View file @
85b78c31
...
...
@@ -71,11 +71,6 @@ struct TriggeredHit <: AbstractDAQHit
trigger_mask
::
UInt64
end
mutable struct
Multiplicity
count
::
Int32
id
::
Int64
end
struct
XCalibratedHit
<:
AbstractCalibratedHit
dom_id
::
UInt32
...
...
@@ -86,9 +81,8 @@ struct XCalibratedHit <: AbstractCalibratedHit
pos
::
Position
{
Float64
}
dir
::
Direction
{
Float64
}
t0
::
Float64
du
::
UInt8
string
::
UInt8
floor
::
UInt8
multiplicity
::
Multiplicity
end
"""
...
...
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