Definition and measurement of global thermodynamic variables for laser-cooled trapped gas