might be obvious to everyone already but just checked the transit into town from the airport and it’s very good … a couple of euros rather than an expensive taxi fare
english version of the train site http://www.renfe.com/EN/viajeros/cercanias/barcelona/index.html