Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
DavidWalz
airshower-deeplearning
Commits
4f1272f5
Commit
4f1272f5
authored
May 05, 2017
by
DavidWalz
Browse files
add test script for scaling
parent
0135c794
Changes
1
Hide whitespace changes
Inline
Side-by-side
stuff/test_principal_scaling.py
0 → 100644
View file @
4f1272f5
from
pylab
import
*
# scaling with zenith angle (S1000 --> S38 relation, CIC)
zenith
=
np
.
linspace
(
0
,
60
,
100
)
x
=
np
.
cos
(
np
.
deg2rad
(
zenith
))
**
2
-
np
.
cos
(
np
.
deg2rad
(
38
))
**
2
y
=
1
+
0.95
*
x
-
1.63
*
x
**
2
-
1.21
*
x
**
3
figure
()
plot
(
zenith
,
y
)
xlabel
(
'zenith [deg]'
)
ylabel
(
'signal'
)
ylim
(
0
)
grid
()
savefig
(
'scaling-zenith.png'
)
# scaling with mass number and relative scaling mu/em
A
=
np
.
linspace
(
1
,
60
)
a
=
A
**
0.15
S1
=
a
/
(
a
+
1
)
S2
=
1
/
(
a
+
1
)
*
1.5
figure
()
plot
(
A
,
S1
,
label
=
'$\mu$'
)
plot
(
A
,
S2
,
label
=
'$e \gamma$'
)
legend
()
ylim
(
0
)
xlabel
(
'mass number'
)
ylabel
(
'signal'
)
grid
()
savefig
(
'scaling-A.png'
)
# scaling with distance of station to shower axis
r
=
np
.
logspace
(
1.8
,
3.5
,
100
)
S1
=
(
np
.
maximum
(
r
,
100
)
/
1000
)
**-
4.3
S2
=
(
np
.
maximum
(
r
,
100
)
/
1000
)
**-
5.5
figure
()
plot
(
r
,
S1
,
label
=
'$\mu$'
)
plot
(
r
,
S2
,
label
=
'$e \gamma$'
)
legend
()
loglog
()
xlabel
(
'radial distance [m]'
)
ylabel
(
'signal'
)
grid
()
savefig
(
'scaling-r.png'
)
# scaling with traversed atmosphere to station
dX
=
np
.
linspace
(
10
,
800
,
100
)
S1
=
(
np
.
maximum
(
dX
,
10
)
/
100
)
**-
0.05
S2
=
(
np
.
maximum
(
dX
,
10
)
/
100
)
**-
0.2
figure
()
plot
(
dX
,
S1
,
label
=
'$\mu$'
)
plot
(
dX
,
S2
,
label
=
'$e \gamma$'
)
legend
()
ylim
(
0
)
xlabel
(
'distance to Xmax [g/cm2]'
)
ylabel
(
'signal'
)
grid
()
savefig
(
'scaling-dX.png'
)
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment