source_side

lstchain.reco.utils.source_side(source_pos_x, cog_x)

Compute on what side of the center of gravity the source is in the camera.

Parameters:
source_pos_x: X coordinate of the source in the camera, float
cog_x: X coordinate of the center of gravity, float
Returns:
float: -1 or +1