Origin of "a head of steam"

I'm aware of the general origin of "a head of steam" being from old steam-powered trains, but how does it break down? I'm guessing that the "head" is the surplus of motive force necessary to break...