Commit 101e8e96 authored by Alessio Berti's avatar Alessio Berti
Browse files

Initialize SimulatedEventContainer.

parent 59302f51
Pipeline #116436 failed with stage
in 7 seconds
......@@ -28,6 +28,7 @@ from ctapipe.core import Field
from ctapipe.containers import (
......@@ -737,6 +738,7 @@ class MAGICEventSource(EventSource):
# check meaning of 7deg transformation (I.Vovk)
# adding a 7deg rotation between the orientation of corsika (x axis = magnetic north) and MARS (x axis = geographical north) frames
# magnetic north is 7 deg westward w.r.t. geographical north
data.simulation = SimulatedEventContainer()
data.simulation.shower = SimulatedShowerContainer(
energy = u.Quantity(event_data['true_energy'], u.GeV),
alt = Angle((np.pi/2 - event_data['true_zd']), u.rad),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment