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
87e9fff2
Verified
Commit
87e9fff2
authored
1 year ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Readd some ROyFit methods
parent
6a343a31
No related branches found
No related tags found
No related merge requests found
Pipeline
#48421
passed
1 year ago
Stage: test
Stage: docs
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/NeRCA.jl
+1
-0
1 addition, 0 deletions
src/NeRCA.jl
src/royfit.jl
+31
-0
31 additions, 0 deletions
src/royfit.jl
with
32 additions
and
0 deletions
src/NeRCA.jl
+
1
−
0
View file @
87e9fff2
...
...
@@ -58,6 +58,7 @@ include("hits.jl")
include
(
"mc.jl"
)
include
(
"scanfit.jl"
)
include
(
"dumandfit.jl"
)
include
(
"royfit.jl"
)
include
(
"db.jl"
)
end
This diff is collapsed.
Click to expand it.
src/royfit.jl
0 → 100644
+
31
−
0
View file @
87e9fff2
mutable struct
SingleDUParams
d
::
Float64
t
::
Float64
z
::
Float64
dz
::
Float64
t₀
::
Float64
end
"""
Returns a function which calculates the arrival time of a Cherenkov photon
at a given position.
"""
function
make_cherenkov_calculator
(
d_closest
,
t_closest
,
z_closest
,
dir_z
,
t₀
;
n
=
KM3io
.
Constants
.
INDEX_OF_REFRACTION_WATER
)
c_ns
=
KM3io
.
Constants
.
c
/
1e9
d_γ
(
z
)
=
n
/
√
(
n
^
2
-
1
)
*
√
(
d_closest
^
2
+
(
z
-
z_closest
)
^
2
*
(
1
-
dir_z
^
2
))
t
(
z
)
=
(
t₀
)
+
1
/
c_ns
*
((
z
-
z_closest
)
*
dir_z
+
(
n
^
2
-
1
)
/
n
*
d_γ
(
z
))
d_γ
,
t
end
"""
Returns a function which calculates the arrival time of a Cherenkov photon
at a given position.
"""
function
make_cherenkov_calculator
(
sdp
::
SingleDUParams
;
n
=
KM3io
.
Constants
.
INDEX_OF_REFRACTION_WATER
)
c_ns
=
KM3io
.
Constants
.
c
/
1e9
d_γ
(
z
)
=
n
/
√
(
n
^
2
-
1
)
*
√
(
sdp
.
d
^
2
+
(
z
-
sdp
.
z
)
^
2
*
(
1
-
sdp
.
dz
^
2
))
t
(
z
)
=
(
sdp
.
t₀
)
+
1
/
c_ns
*
((
z
-
sdp
.
z
)
*
sdp
.
dz
+
(
n
^
2
-
1
)
/
n
*
d_γ
(
z
))
d_γ
,
t
end
This diff is collapsed.
Click to expand it.
Tamas Gal
@tgal
mentioned in commit
8c66baa4
·
1 year ago
mentioned in commit
8c66baa4
mentioned in commit 8c66baa41e2b7c564cfa58789c59b2aae0460ce7
Toggle commit list
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