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
71b5fd41
Commit
71b5fd41
authored
May 18, 2017
by
DavidWalz
Browse files
increase arrival time noise and make it signal dependent
parent
2d96b7bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
shower.py
View file @
71b5fd41
...
...
@@ -146,7 +146,9 @@ def rand_events(logE, mass, v_stations, fname=None):
# total signal
S
=
S1
+
S2
# add per ton noise on arrival time
T
+=
20E-9
*
np
.
random
.
randn
(
*
T
.
shape
)
Stot
=
S
.
sum
(
axis
=-
1
)
sigma
=
8.
/
(
1
+
np
.
log10
(
Stot
+
1
))
# varies from ~ 1 - 8
T
+=
sigma
*
40E-9
*
np
.
random
.
randn
(
*
T
.
shape
)
# add time offset per event (to account for core position)
T
+=
100E-9
*
(
np
.
random
.
rand
(
nb_events
,
1
)
-
0.5
)
# add relative noise to signal pulse
...
...
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