Electric devices associated with track {, e.g. rail contacts} mechanically actuated by a part of the vehicle