then that's called a "microstate". Here is how we define the temperature of a particular macrostate. Step 1. Find the number of microstates corresponding to the macrostate. That is, how many ways can I place N particles in a box with this shape and volume
Temperature and the Sackur–Tetrode Equation