MAGICBadPixelsCalc#

class magicctapipe.utils.MAGICBadPixelsCalc(is_simulation, camera=None, config=None)[source]#

Bases: object

Calculate bad pixels for MAGIC camera.

Parameters:
is_simulationbool

Flag for simulation or real data

cameractapipe.instrument.camera.geometry.CameraGeometry, optional

Camera geometry, by default None

configdict, optional

Configuration dictionary, by default None

Methods Summary

get_badpixel_mask(event)

Fetch the union of bad RMS and bad pixels for a given event, that is the event time.

get_badrmspixel_indices(event)

Quick workaround to get the pixel IDs and not the mask

get_badrmspixel_mask(event)

Fetch the bad RMS pixel mask for a given event, that is the event time.

get_deadpixel_mask(event)

Fetch the subrun-wise defined dead pixels for a given event, that is the event time.

Methods Documentation

get_badpixel_mask(event)[source]#

Fetch the union of bad RMS and bad pixels for a given event, that is the event time.

Parameters:
eventctapipe.containers.ArrayEventContainer

Event container.

Returns:
bool

Has two dimensions: masks for M1 and/or M2.

get_badrmspixel_indices(event)[source]#

Quick workaround to get the pixel IDs and not the mask

Parameters:
eventctapipe.containers.ArrayEventContainer

Event container.

Returns:
list

Bad pixels indices.

get_badrmspixel_mask(event)[source]#

Fetch the bad RMS pixel mask for a given event, that is the event time.

Parameters:
eventctapipe.containers.ArrayEventContainer

Event container.

Returns:
bool

Has two dimensions: masks for M1 and/or M2.

get_deadpixel_mask(event)[source]#

Fetch the subrun-wise defined dead pixels for a given event, that is the event time.

Parameters:
eventctapipe.containers.ArrayEventContainer

Event container.

Returns:
bool

Has two dimensions: masks for M1 and/or M2.