Driving 395 1C14 on SEHS. On arrival at St Pancras, stood up to prep adjacent 395 train to couple to and driver’s head went through the cab roof and unable recover without exiting.