SimTelEventSource

class ctapipe.io.simteleventsource.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

back_seekable

A boolean (True, False) trait.

calib_scale

A float trait.

calib_shift

A float trait.

datalevels

The datalevels provided by this event source

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

Weither the currently opened file is simulated

is_stream

Bool indicating if input is a stream.

obs_ids

The observation ids of the runs located in the file Unmerged files should only contain a single obs id.

simulation_config

skip_calibration_events

A boolean (True, False) trait.

subarray

Obtain the subarray from the EventSource

Methods Summary

close()

is_compatible(file_path)

Abstract method to be defined in child class.

prepare_subarray_info(…)

Constructs a SubarrayDescription object from the telescope_descriptions given by SimTelFile

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

close()[source]
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 by SimTelFile

Parameters
telescope_descriptions: dict

telescope descriptions as given by SimTelFile.telescope_descriptions

header: dict

header as returned by SimTelFile.header

Returns
SubarrayDescription :

instrumental information