On the relation between solar wind heating and energetic particles