Complex sentence: Beside every signal is a moveable clamp, which touches a valve on a passing train if the signal is red and opens the brake line, applying the emergency brake.
Split into simpler sentences: Beside every signal is a moveable clamp, which touches a valve on a passing train. If the signal is red, the clamp opens the brake line, applying the emergency brake.