An iconic locomotive is set to arrive in Carlisle next week as part of an historic rail tour.