The electromagnetic calorimeter of the CMS experiment