Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LumenManufaktur.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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
LumenManufaktur.jl
Commits
fc6d29c0
Verified
Commit
fc6d29c0
authored
11 months ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Add delta ray stuff
parent
42013c44
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#51360
passed
11 months ago
Stage: test
Stage: docs
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/exports.jl
+2
-0
2 additions, 0 deletions
src/exports.jl
src/muons.jl
+31
-28
31 additions, 28 deletions
src/muons.jl
with
33 additions
and
28 deletions
src/exports.jl
+
2
−
0
View file @
fc6d29c0
export
directlightfrommuon
,
scatteredlightfrommuon
,
directlightfromdeltarays
,
scatteredlightfromdeltarays
,
LMParameters
,
PMTModel
,
absorptionlength
,
...
...
This diff is collapsed.
Click to expand it.
src/muons.jl
+
31
−
28
View file @
fc6d29c0
...
...
@@ -27,11 +27,22 @@ Returns the probability.
# Arguments
- `x`: cosine emission angle
"""
function
deltayprobability
(
x
)
function
delta
ra
yprobability
(
x
)
0.188
*
exp
(
-
1.25
*
abs
(
x
-
0.90
)
^
1.30
)
end
"""
geanc()
Equivalent muon track length per unit shower energy [m/GeV].
See ANTARES internal note ANTARES-SOFT-2002-015, J. Brunner.
"""
@inline
geanc
()
=
4.7319
# dx/dE [m/GeV]
"""
directlightfrommuon(params::LMParameters, pmt::PMTModel, R, θ, ϕ)
...
...
@@ -329,7 +340,6 @@ relative to direct Cherenkov light. Returns d^2P/dt/dE [npe/ns ⋅ m/GeV].
- `Δt`: time difference [ns] relative to the Cherenkov light
"""
function
directlightfromdeltarays
(
params
::
LMParameters
,
pmt
::
PMTModel
,
R
,
θ
,
ϕ
,
Δt
)
error
(
"Not implemented yet"
)
value
=
0.0
R
=
max
(
R
,
params
.
minimum_distance
)
...
...
@@ -366,39 +376,32 @@ function directlightfromdeltarays(params::LMParameters, pmt::PMTModel, R, θ, ϕ
npe
=
cherenkov
(
w
,
n
)
*
dw
*
pmt
.
quantum_efficiency
(
w
)
# TODO: WTF?
# JRoot rz(R, ng, t) # square root
# if (!rz.is_valid) {
# continue;
# }
root
=
Root
(
R
,
ng
,
t
)
# square root
# for (int j = 0; j != 2; ++j) {
!
root
.
isvalid
&&
continue
# z = rz[j];
for
z
in
(
root
.
most_upstream
,
root
.
most_downstream
)
# if (C * t <= z)
# continue;
C
*
t
<=
z
&&
continue
#
d = sqrt(z * z + R * R) # distance traveled by photon
d
=
sqrt
(
z
*
z
+
R
*
R
)
# distance traveled by photon
#
ct0 = -z / d;
#
st0 = R / d;
ct0
=
-
z
/
d
;
st0
=
R
/
d
;
# dz = D / st0 # average track length
# ct =
# st0 * px + ct0 * pz # cosine angle of incidence on PMT
dz
=
D
/
st0
# average track length
ct
=
st0
*
px
+
ct0
*
pz
# cosine angle of incidence on PMT
#
U = pmt.angular_acceptance(ct) # PMT angular acceptance
#
V = exp(-d / l_abs - d / ls) # absorption & scattering
#
W = A / (d * d) # solid angle
U
=
pmt
.
angular_acceptance
(
ct
)
# PMT angular acceptance
V
=
exp
(
-
d
/
l_abs
-
d
/
ls
)
# absorption & scattering
W
=
A
/
(
d
*
d
)
# solid angle
#
Ja = deltarayprobability(ct0) # d^2N/dcos/dϕ
#
Jd = (1.0 - ng * ct0) / C # d t/ dz
#
Je = ng * st0 * st0 * st0 / (R * C) # d^2t/(dz)^2
Ja
=
deltarayprobability
(
ct0
)
# d^2N/dcos/dϕ
Jd
=
(
1.0
-
ng
*
ct0
)
/
C
# d t/ dz
Je
=
ng
*
st0
*
st0
*
st0
/
(
R
*
C
)
# d^2t/(dz)^2
#
value += npe * geanc() * U * V * W * Ja / (
f
abs(Jd) + 0.5 * Je * dz);
# }
value
+=
npe
*
geanc
()
*
U
*
V
*
W
*
Ja
/
(
abs
(
Jd
)
+
0.5
*
Je
*
dz
);
end
end
return
value
...
...
@@ -570,11 +573,11 @@ Helper struct to find solution(s) to ``z`` of the square root expression:
```math
\b
egin{aligned}
ct(z=0) & = & z + n \sqrt{z^2 + R^2}
ct(z=0) & = & z + n
\
\
sqrt{z^2 + R^2}
\end{aligned}
```
where ``n = 1/\cos(
\t
heta_{c})`` is the index of refraction.
where ``n = 1/
\
\
cos(
\
\
theta_{c})`` is the index of refraction.
# Arguments
...
...
This diff is collapsed.
Click to expand it.
Tamas Gal
@tgal
mentioned in commit
119425cd
·
11 months ago
mentioned in commit
119425cd
mentioned in commit 119425cd7f134d4e61df7e6f93dfe1f7a6f5076e
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