Event-by-event mean pT  fluctuations in pp and Pb–Pb collisions at the LHC