Getting there
Train in Barcelona leaves from Sants Train Station. You'll get your luggage checked (similar to Eurostar checks). There can be a bit of queue so arrive a bit earlier (to be relaxed 30 min before train departure).
On your way back, the queue will be smaller so you can be closer to the departure time there.