What is a detector bar? Here are some definitions.
Noun
(railways) A bar, connected with a switch, longer than the distance between any two consecutivewheels of a train, laid inside a rail and operated by the wheels so that the switch cannot be thrown until the entire train has passed the switch.