Energy resolution of the barrel of the CMS Electromagnetic Calorimeter