Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ievgen Vovk
ctapipe_io_magic
Commits
171f3eb0
Commit
171f3eb0
authored
Dec 14, 2020
by
Federico Di Pierro
Browse files
Added shower reuse value also in the mono_event_generator
parent
f41bddde
Pipeline
#89560
failed with stage
in 20 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ctapipe_io_magic/__init__.py
View file @
171f3eb0
...
...
@@ -521,6 +521,7 @@ class MAGICEventSource(EventSource):
#fdp (mono version not fully tested)
else
:
data
.
mcheader
.
num_showers
=
self
.
current_run
[
'data'
].
mcheader_data
[
telescope
][
'sim_nevents'
]
# total, including reuse
data
.
mcheader
.
shower_reuse
=
self
.
current_run
[
'data'
].
mcheader_data
[
telescope
][
'sim_reuse'
]
data
.
mcheader
.
energy_range_min
=
(
self
.
current_run
[
'data'
].
mcheader_data
[
telescope
][
'sim_emin'
]).
to
(
u
.
TeV
)
# GeV->TeV
data
.
mcheader
.
energy_range_max
=
(
self
.
current_run
[
'data'
].
mcheader_data
[
telescope
][
'sim_emax'
]).
to
(
u
.
TeV
)
# GeV->TeV
data
.
mcheader
.
spectral_index
=
self
.
current_run
[
'data'
].
mcheader_data
[
telescope
][
'sim_eslope'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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