SimTelEventSource¶
-
class
ctapipe.io.
SimTelEventSource
(input_url=traitlets.Undefined, config=None, parent=None, **kwargs)[source]¶ Bases:
ctapipe.io.eventsource.EventSource
Read events from a SimTelArray data file (in EventIO format).
Attributes Summary
A boolean (True, False) trait.
A float trait.
A float trait.
The datalevels provided by this event source
An enum of strings where the case should be ignored.
An enum of strings where the case should be ignored.
Weither the currently opened file is simulated
Bool indicating if input is a stream.
The observation ids of the runs located in the file Unmerged files should only contain a single obs id.
A boolean (True, False) trait.
Obtain the subarray from the EventSource
Methods Summary
close
()is_compatible
(file_path)Abstract method to be defined in child class.
Constructs a SubarrayDescription object from the
telescope_descriptions
given bySimTelFile
Attributes Documentation
-
back_seekable
¶ A boolean (True, False) trait.
-
calib_scale
¶ A float trait.
-
calib_shift
¶ A float trait.
-
datalevels
¶
-
focal_length_choice
¶ An enum of strings where the case should be ignored.
-
gain_selector_type
¶ An enum of strings where the case should be ignored.
-
is_simulation
¶
-
is_stream
¶
-
obs_ids
¶
-
simulation_config
¶
-
skip_calibration_events
¶ A boolean (True, False) trait.
-
subarray
¶
Methods Documentation
-
static
is_compatible
(file_path)[source]¶ Abstract method to be defined in child class.
Perform a set of checks to see if the input file is compatible with this file event_source.
- Parameters
- file_pathstr
File path to the event file.
- Returns
- compatiblebool
True if file is compatible, False if it is incompatible
-
prepare_subarray_info
(telescope_descriptions, header)[source]¶ Constructs a SubarrayDescription object from the
telescope_descriptions
given bySimTelFile
- Parameters
- telescope_descriptions: dict
telescope descriptions as given by
SimTelFile.telescope_descriptions
- header: dict
header as returned by
SimTelFile.header
- Returns
- SubarrayDescription
instrumental information
-