ring_completeness#
- ctapipe.image.ring_completeness(pixel_x, pixel_y, weights, radius, center_x, center_y, threshold=30, bins=30)[source]#
Estimate how complete a ring is. Bin the light distribution along the the ring and apply a threshold to the bin content.
- Parameters:
- pixel_x: array-like
x coordinates of the camera pixels
- pixel_y: array-like
y coordinates of the camera pixels
- weights: array-like
weights for the camera pixels, will usually be the pe charges
- radius: float
radius of the ring
- center_x: float
x coordinate of the ring center
- center_y: float
y coordinate of the ring center
- threshold: float
number of photons a bin must contain to be counted
- bins: int
number of bins to use for the histogram
- Returns:
- ring_completeness: float
the ratio of bins above threshold