MAGICBadPixelsCalc#
- class magicctapipe.utils.MAGICBadPixelsCalc(is_simulation, camera=None, config=None)[source]#
Bases:
objectCalculate bad pixels for MAGIC camera.
- Parameters:
- is_simulationbool
Flag for simulation or real data
- camera
ctapipe.instrument.camera.geometry.CameraGeometry, optional Camera geometry, by default None
- config
dict, 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:
- event
ctapipe.containers.ArrayEventContainer Event container.
- event
- 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:
- event
ctapipe.containers.ArrayEventContainer Event container.
- event
- Returns:
listBad pixels indices.
- get_badrmspixel_mask(event)[source]#
Fetch the bad RMS pixel mask for a given event, that is the event time.
- Parameters:
- event
ctapipe.containers.ArrayEventContainer Event container.
- event
- 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:
- event
ctapipe.containers.ArrayEventContainer Event container.
- event
- Returns:
- bool
Has two dimensions: masks for M1 and/or M2.