Energy resolution and structure of a calorimeter