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
Commits
00344414
Verified
Commit
00344414
authored
1 year ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup dumandfit
parent
40580b29
No related branches found
No related tags found
1 merge request
!3
Muonscanfit
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/NeRCA.jl
+1
-0
1 addition, 0 deletions
src/NeRCA.jl
src/dumandfit.jl
+28
-0
28 additions, 0 deletions
src/dumandfit.jl
src/royfit.jl
+0
-30
0 additions, 30 deletions
src/royfit.jl
with
29 additions
and
30 deletions
src/NeRCA.jl
+
1
−
0
View file @
00344414
...
...
@@ -67,6 +67,7 @@ include("hits.jl")
include
(
"mc.jl"
)
include
(
"scanfit.jl"
)
include
(
"royfit.jl"
)
include
(
"dumandfit.jl"
)
include
(
"plot.jl"
)
include
(
"db.jl"
)
...
...
This diff is collapsed.
Click to expand it.
src/dumandfit.jl
0 → 100644
+
28
−
0
View file @
00344414
"""
Performs the prefit algorithm which was used in DUMAND II.
"""
function
dumandfit
(
hits
::
Vector
{
T
})
where
T
<:
AbstractCalibratedHit
N
=
length
(
hits
)
D
=
0.0
dir
=
Direction
(
0.0
,
0.0
,
0.0
)
pos
=
Position
(
0.0
,
0.0
,
0.0
)
pes
=
[
max
(
1
,
(
h
.
tot
-
26.3
)
/
4.5
)
for
h
in
hits
]
# pes = [h.tot for h in hits]
# pes = [h.multiplicity.count for h in hits]
@inbounds
for
i
∈
1
:
N
@inbounds
for
k
∈
1
:
N
if
i
==
k
continue
end
t_i
=
hits
[
i
]
.
t
t_k
=
hits
[
k
]
.
t
q_ik
=
pes
[
i
]
*
pes
[
k
]
t_ik
=
t_i
*
t_k
pos
+=
q_ik
*
(
hits
[
i
]
.
pos
*
(
t_k
^
2
-
t_ik
)
+
hits
[
k
]
.
pos
*
(
t_i
^
2
-
t_ik
))
dir
+=
q_ik
*
(
hits
[
i
]
.
pos
-
hits
[
k
]
.
pos
)
*
(
t_i
-
t_k
)
D
+=
q_ik
*
(
t_i
-
t_k
)
^
2
end
end
dir
=
normalize
(
dir
/
D
)
return
Track
(
dir
,
pos
/
D
,
0
)
end
This diff is collapsed.
Click to expand it.
src/royfit.jl
+
0
−
30
View file @
00344414
...
...
@@ -26,36 +26,6 @@ struct ROyFit
end
"""
Performs the prefit algorithm which was used in DUMAND II.
"""
function
dumandfit
(
hits
::
Vector
{
T
})
where
T
<:
AbstractCalibratedHit
N
=
length
(
hits
)
D
=
0.0
dir
=
Direction
(
0.0
,
0.0
,
0.0
)
pos
=
Position
(
0.0
,
0.0
,
0.0
)
pes
=
[
max
(
1
,
(
h
.
tot
-
26.3
)
/
4.5
)
for
h
in
hits
]
# pes = [h.tot for h in hits]
# pes = [h.multiplicity.count for h in hits]
@inbounds
for
i
∈
1
:
N
@inbounds
for
k
∈
1
:
N
if
i
==
k
continue
end
t_i
=
hits
[
i
]
.
t
t_k
=
hits
[
k
]
.
t
q_ik
=
pes
[
i
]
*
pes
[
k
]
t_ik
=
t_i
*
t_k
pos
+=
q_ik
*
(
hits
[
i
]
.
pos
*
(
t_k
^
2
-
t_ik
)
+
hits
[
k
]
.
pos
*
(
t_i
^
2
-
t_ik
))
dir
+=
q_ik
*
(
hits
[
i
]
.
pos
-
hits
[
k
]
.
pos
)
*
(
t_i
-
t_k
)
D
+=
q_ik
*
(
t_i
-
t_k
)
^
2
end
end
dir
=
normalize
(
dir
/
D
)
return
Track
(
dir
,
pos
/
D
,
0
)
end
"""
Returns a function which calculates the arrival time of a Cherenkov photon
at a given position.
...
...
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