Factors influencing resolution of gamma energy spectrum