Railroad police or railway police are people responsible for protecting railroad properties, facilities, revenue, equipment, and personnel, as well as carrying passengers and cargo. Railroad police may also patrol public rail transit systems.
Their exact roles differ from country to country. From Wikipedia