Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NeRCA.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Tamas Gal
NeRCA.jl
Merge requests
!3
Muonscanfit
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Muonscanfit
muonscanfit
into
master
Overview
0
Commits
88
Pipelines
40
Changes
1
Merged
Tamas Gal
requested to merge
muonscanfit
into
master
1 year ago
Overview
0
Commits
88
Pipelines
40
Changes
1
Expand
0
0
Merge request reports
Viewing commit
bace363d
Prev
Next
Show latest version
1 file
+
31
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Verified
bace363d
Line Z updates
· bace363d
Tamas Gal
authored
1 year ago
src/scanfit.jl
+
31
−
3
Options
@@ -25,8 +25,11 @@ function (msf::MuonScanfit)(hits::Vector{T}) where T<:KM3io.AbstractHit
clique
=
Clique
(
Match3B
(
msf
.
params
.
roadwidth
,
msf
.
params
.
tmaxextra
))
clusterize!
(
rhits
,
clique
)
candidates
=
Vector
{
Tuple
{
Int
,
Direction
}}()
Threads
.
@threads
for
dir
∈
msf
.
directions
# TODO threading is bugged
# Threads.@threads for dir ∈ msf.directions
for
dir
∈
msf
.
directions
rhits_copy
=
copy
(
rhits
)
clique1D
=
Clique
(
Match1D
(
msf
.
params
.
roadwidth
,
msf
.
params
.
tmaxextra
))
@@ -45,12 +48,37 @@ function (msf::MuonScanfit)(hits::Vector{T}) where T<:KM3io.AbstractHit
length
(
rhits_copy
)
<=
3
&&
continue
# TODO 3 comes from the number of parameters, retrieve from Line1Z fitter via type!
# TODO x-y scane
push!
(
candidates
,
(
length
(
rhits_copy
),
dir
))
end
rhit
s
candidate
s
end
struct
Line1Z
abstract type
EstimatorModel
end
"""
A straight line parallel to the z-axis.
"""
struct
Line1Z
<:
EstimatorModel
pos
::
Position
{
Float64
}
t
::
Float64
end
Line1Z
()
=
Line1Z
(
Position
(
0.0
,
0.0
,
0.0
),
0.0
)
"""
Calculate the Chernkov arrival tive for a given position.
"""
function
Base.time
(
lz
::
Line1Z
,
pos
::
Position
)
v
=
pos
-
lz
.
pos
R
=
√
(
v
.
x
*
v
.
x
+
v
.
y
*
v
.
y
)
lz
.
t
+
(
v
.
z
+
R
*
KM3io
.
Constants
.
KAPPA_WATER
)
*
KM3io
.
Constants
.
C_INVERSE
end
struct
Line1ZEstimator
model
::
Line1Z
V
::
end
Loading