Three different partition functions are well-known and described in statistical physics. Here, a novel partition function for the description of intra-particular interactions and with this for the mass of particles is presented below. In statistical physics, three different partition functions are already well-established. These are the microcanonical, the canonical, and the macro-canonical partition functions. Here a fourth, novel partition function is added to these already well-established three. Thereby due to the properties of quantum mechanics and superposition, this novel partition function is of fundamental different nature. According to this concept, the new partition function for particles is first defined. The masses and energies of the elementary particles are then calculated using this novel partition function. The energy of an elementary particle is proportional to the mass on the one hand and to the novel partition function on the other. The constant of proportionality with respect to the new partition function is found to be identical with Rydberg constant and Rydberg energy. The relationships found for the proton, the electron, and the sigma particle are then generalized to all elementary particles.