Covariant statistical mechanics and the stress-energy tensor.