-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_plots.jl
69 lines (50 loc) · 1.65 KB
/
test_plots.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# @benchmark Posc_vacuum_planewave( mu, mu, natural(30km)/200MeV )
# Posc_vacuum_planewave( mu, mu, natural(30km)/200MeV )
# Posc_vacuum_planewave( mu, ele, natural(30km)/200MeV )
# Posc_vacuum_planewave( mu, tau, natural(30km)/200MeV )
# check solar oscillations (@ KamLAND )
begin
α = ele
L = (50:0.2:200) * u"km"
E = 5MeV
lw = 1.5
β = ele
P = Posc_vacuum_planewave.( α, β, natural.(L) ./ E )
plot( L, P; lw, xlabel="baseline L", label="P($α → $β)" )
#
β = mu
P .= Posc_vacuum_planewave.( α, β, natural.(L) ./ E )
plot!( L, P; lw, xlabel="baseline L", label="P($α → $β)" )
#
β = tau
P .= Posc_vacuum_planewave.( α, β, natural.(L) ./ E )
plot!( L, P; lw, xlabel="baseline L", label="P($α → $β)" )
#
plot!( title="\nE = $E", ylims=(-0.05,1.05), size=(500, 250) )
end
# check atmospheric oscillations
begin
α = mu
L = 30km
E = exp10.(-1.5:0.001:3) * GeV
lw = 1.5
β = ele
P = Posc_vacuum_standard.( α, β, natural.(L) ./ E )
plot( E, P; lw, xlabel="energy E", label="P($α → $β)" )
#
β = mu
P .= Posc_vacuum_standard.( α, β, natural.(L) ./ E )
plot!( E, P; lw, label="P($α → $β)" )
#
β = tau
P .= Posc_vacuum_standard.( α, β, natural.(L) ./ E )
plot!( E, P; lw, label="P($α → $β)" )
#
xt = [10MeV, 30MeV, 100MeV, 300MeV, 1GeV, 3GeV, 10GeV]
sxt = ["10MeV", "30MeV", "100MeV", "300MeV", "1GeV", "3GeV", "10GeV"]
plot!(
xscale=:log10, xticks=( xt, sxt ),
title="\nL = $L",
size=(500, 250)
)
end