ring_containment¶
-
ctapipe.image.muon.
ring_containment
(radius, center_x, center_y, camera_radius)[source]¶ Estimate angular containment of a ring inside the camera (camera center is (0,0))
Improve: include the case of an arbitrary center for the camera
See https://stackoverflow.com/questions/3349125/circle-circle-intersection-points
- Parameters
- radius: float or quantity
radius of the muon ring
- center_x: float or quantity
x coordinate of the center of the muon ring
- center_y: float or quantity
y coordinate of the center of the muon ring
- camera_radius: float or quantity
radius of the camera
- Returns
- ——
- ringcontainment: float
the ratio of ring inside the camera