magic-cta-pipe is under active development. Expect large and rapid changes in functionality.

get_stereo_events#

magicctapipe.io.get_stereo_events(event_data, config, quality_cuts=None, group_index=['obs_id', 'event_id'], eval_multi_combo=True)[source]#

Gets the stereo events surviving specified quality cuts.

It also adds the telescope multiplicity multiplicity and combination types combo_type to the output data frame.

Parameters:
event_datapandas.DataFrame

Data frame of shower events

configdict

Read from the yaml file with information about the telescope IDs.

quality_cutsstr

Quality cuts applied to the input data

group_indexlist

Index to group telescope events

eval_multi_combobool

If True, multiplicity is recalculated, combination type is assigned to each event and the fraction of events per combination type is shown

Returns:
pandas.DataFrame

Data frame of the stereo events surviving the quality cuts